下载所有分支,然后再指定(方法一)
git clone git@github.com:apache/flume.git
git branch -r
git checkout -b flume-1.9 origin/flume-1.9

下载所有分支,直接切换也可以 (!!!)

指定分支
git clone -b flume-1.9 git@github.com:apache/flume.git
git clone git@github.com:apache/flume.git
git branch -r
git checkout -b flume-1.9 origin/flume-1.9
git clone -b flume-1.9 git@github.com:apache/flume.git
本文标题:git clone指定分支
本文链接:https://www.haomeiwen.com/subject/awpnoqtx.html
网友评论