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