git clone指定branch或tag


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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM