git clone指定分支

下载所有分支,然后再指定(方法一)

git clone [email protected]:apache/flume.git
git branch -r
git checkout -b flume-1.9 origin/flume-1.9

image.png

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

image.png

指定分支

git clone -b flume-1.9 [email protected]:apache/flume.git

你可能感兴趣的:(git clone指定分支)