天天看点

git clone指定的tag代码 只clone仓库中的一个分支git clone指定的tag代码git 只clone仓库中的一个分支

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