git clone指定的tag代码 只clone仓库中的一个分支
2017-05-19 11:43
621 查看
git clone指定的tag代码
git How to git clone a specific taggit 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 -bgit clone -b r0.6.2-fix-bintray https://github.com/xxxx/xxxx.git
相关文章推荐
- git 从远程仓库指定分支clone代码到本地
- Git(GitHub) 003 如何 clone 非 master 分支的代码 — 切换到指定 branch分支 或者 tag版本
- git命令行clone指定分支、更新、冲突解决、提交代码步骤
- git clone 指定分支 拉代码
- git clone 远程仓库上的某个分支,指定克隆到本地的repo目录名
- git clone某一个分支的代码,非主分支
- Git之新建一个分支并且提交代码带远程仓库
- git本地仓库关联多个remote,怎么用本地一个分支向不同remote不同分支推送代码
- Android将本地工程提交到指定Git仓库上进行代码管理
- git 同时向两个仓库提交同一个分支
- wghd的git代码仓库分支管理说明【转】
- git clone指定远程分支
- 克隆git仓库中的一个分支
- repo回退当前分支下所有仓库到指定日期前的最新代码版本
- 如何只克隆git仓库中的一个分支?
- Git 一个远程使用的代码管理仓库
- git 将自己本地的代码建立分支推送到远程仓库
- Github:在eclipse中使用git clone 别人共享在Github的代码和上传到自己的仓库!
- git是一种分布式代码管理工具,git通过树的形式记录文件的更改历史,比如: base'<--base<--A<--A' ^ | --- B<--B' 小米工程师常常需要寻找两个分支最近的分割点,即base.假设git 树是多叉树,请实现一个算法,计算git树上任意两点的最近分割点。 (假设git树节点数为n,用邻接矩阵的形式表示git树:字符串数组matrix包含n个字符串,每个字符串由字符'0
- git在一个分支上修改了代码但是不想commit到本地git库,需要切换一个分支去修改代码,这个时候也可以使用git stash