赞
踩
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 © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。