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

----------------------------------------------------

转帖地址:http://blog.csdn.net/a513322/article/details/46998325

原文地址:https://www.cnblogs.com/wainiwann/p/6694554.html