ramlife

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

命令:git clone --branch [tags标签] [git地址] 或者 git clone --b [tags标签] [git地址]
例如:git clone -b 1.4.1 https://github.com/jumpserver/coco.git

如果想要在指定目录下载指定分支的最后一次提交:
git clone --depth 1 https://gitee.com/mirrors/opencv.git --branch 3.4.12 opencv-3.4.12

参考: https://www.cnblogs.com/Sungeek/p/10275903.html

posted on 2020-12-01 15:26  ramlife  阅读(14222)  评论(0编辑  收藏  举报