git clone指定branch或tag
Git 指定 TAG clone Branch
2023-09-11 14:20:30 时间
git clone指定branch或tag
发布时间:October 28, 2018 // 分类: // No Comments
取完整:
git clone https://github.com/arvidn/libtorrent.git
cd libtorrent/
查看branch:
git branch -a
* master
remotes/origin/HEAD -> origin/master
remotes/origin/RC_1_0
remotes/origin/RC_1_1
使用指定branch:
git checkout origin/RC_1_1
查看tag:
git tag
libtorrent-1_1_8
libtorrent-1_1_9
libtorrent-1_2_0_RC
使用指定tag:
git checkout libtorrent-1_1_9
也可以在clone的时间指定tag或branch:
git clone -b RC_1_1 https://github.com/arvidn/libtorrent.git
git clone -b libtorrent-1_1_9 https://github.com/arvidn/libtorrent.git
相关文章
- 企业团队使用Git协同开发的一般流程
- .gitignore == git添加忽略不生效解决方案
- Git浅拷贝转换为深拷贝
- 【Git】如何将本地非git目录与远程创建的git目录建立关联
- [git]Git常用命令
- Jenkins+Git 集成测试(build、zip、curl)
- [Practical Git] Navigate git command pager output with Unix less commands
- 详解Git工作区、暂存区、历史记录区以及git reset、git revert、git checkout等撤销命令的区别
- git之sourceTree使用github和码云的代码小结
- [Git] Use git add --patch for better commit history and mitigating bugs
- [Practical Git] Filter commit history with git log arguments
- SAP Spartacus 的 git flow 和发布流程
- git for windows的下载地址
- 去掉原仓库git地址和清除原项目的git版本信息的方法
- git 从远程仓库指定分支clone代码到本地
- 我的 Git 学习过程
- Git知识总览(一) 从 git clone 和 git status 谈起
- git 拉取代码指定分支
- Git的fatal: Not a git repository (or any parent up to mount point /home)
- Git忽略特殊文件
- 【Git技巧】第六篇 git常用命令速查表
- 【Git技巧】第一篇 Git 克隆指定分支的代码
- git常用命令
- GIT学习----第三节:版本回退
- Git拉取指定文件或者文件夹
- Git 维护及数据恢复
- Centos7更新git版本
- [Git & GitHub] git 常用命令
- [Git & GitHub] 解决办法:error: failed to push some refs to 'https://github.com/xxxx.git'