美文网首页
Git Cheat Sheet

Git Cheat Sheet

作者: 香菜香菜我是折耳根 | 来源:发表于2020-02-27 22:41 被阅读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 的历史提交记录

相关文章

网友评论

      本文标题:Git Cheat Sheet

      本文链接:https://www.haomeiwen.com/subject/ttjfhhtx.html