Git如何下载clone指定的tag

Git如何下载clone指定的tag

这里写图片描述
如上图,我想下载Tags标签为solution-4 的代码,如何处理呢?
命令如下:

git clone --branch solution-4 git@github.com:zspo/learngit.git
git clone --branch [tags标签] [git地址]
 
原文地址:https://www.cnblogs.com/xiao-xue-di/p/12765407.html