Git 克隆指定版本

tech2022-08-27  129

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

 

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

 

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

 

最新回复(0)