GitHub下载克隆clone指定的分支tags代码 | 您所在的位置:网站首页 › git克隆项目 › GitHub下载克隆clone指定的分支tags代码 |
文章目录
git如何下载指定分支tags的代码解决方法:
git如何下载指定分支tags的代码
github上有很多tag分支版本的代码,我想克隆下载指定版本到我服务器上面 例如:我想下载tag:v2.0.2的代码 命令: git clone -b [tags标签] [git地址] 例如:git clone -b v2.0.2 https://github.com/spring-projects/spring-retry.git 若想对克隆后的项目重命名则可执行以下命令 git clone -b [tags标签] [git地址] [重命名] 例如:git clone -b v2.0.2 https://github.com/spring-projects/spring-retry.git spring-retry-2.0.2 |
CopyRight 2018-2019 实验室设备网 版权所有 |