下载所有分支,然后再指定(方法一)
git clone git@github.com: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 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