Git Cheat Sheet
2020-02-27 本文已影响0人
香菜香菜我是折耳根
只下载某个 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 的历史提交记录