git Clone 某个分支或所有分支

clone 某个分支:
git clone -b b1 https://github.com/...

clone所有分支
git clone https://github.com/...
git branch -r
* master
origin/HEAD -> origin/master
origin/master
origin/b1
git checkout b1

    推荐阅读