只下载某个 tag 的代码
git clone --branch <tag_name> <repo_url>
git clone --branch <tag_name> --depth 1 <repo_url> # 不下载该 branch 历史提交记录
git clone --branch <tag_name> --single-branch <repo_url> # 下载该 branch 的历史提交记录
git clone --branch <tag_name> <repo_url>
git clone --branch <tag_name> --depth 1 <repo_url> # 不下载该 branch 历史提交记录
git clone --branch <tag_name> --single-branch <repo_url> # 下载该 branch 的历史提交记录
本文标题:Git Cheat Sheet
本文链接:https://www.haomeiwen.com/subject/ttjfhhtx.html
网友评论