Git 克隆指定版本

git clone -b v5.2.0 --depth=1 https://github.com/iPotato94/cas.git

-b 后面写上指定 版本标签 ,  即 tag, 比如 v5.2.0

--depth 表示克隆深度, 1 表示只克隆最新的版本. 因为如果项目迭代的版本很多, 克隆会很慢

image.png

猜你喜欢

转载自blog.csdn.net/weixin_39842528/article/details/108373933