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

相关文章:

  • 2021-05-05
  • 2022-12-23
  • 2021-12-15
  • 2021-10-09
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-20
  • 2022-12-23
  • 2021-12-02
  • 2022-12-23
相关资源
相似解决方案