您的位置:首页 > 编程语言

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

2017-05-19 11:43 621 查看

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  git command tag
相关文章推荐