git clone指定的tag代碼
git How to git clone a specific tag
git clone –branch
This command is not supported in git 1.7.9.5.I use git 1.8.3.5 and it works 這樣會使目前版本的head指針處于遊離狀态 所有的送出在切換分支後都會被丢棄。
git clone –branch k0.7.9 https://github.com/xxxx/xxxx.git
基于目前tag建立一個testBranch分支 例如:git checkout -b testBranch k0.7.9
git 隻clone倉庫中的一個分支
git clone -b
git clone -b r0.6.2-fix-bintray https://github.com/xxxx/xxxx.git