Dou*_*yer 6 git git-config git-fetch
每当我运行git fetch它时,从原点获取所有标签.在一个包含大量标签的项目中,这可能会非常麻烦.所以我跑了git config remote.origin.tagopt --no-tags这么抓取将不再获取标签.
git fetch
git config remote.origin.tagopt --no-tags
但是,有时我想要获取标签或单个标签.有谁知道如何做到这一点?(除了删除该配置,并且git fetch --no-tags每次都运行)
git fetch --no-tags
谢谢!
rob*_*nst 9
要获取单个标记,您可以使用git fetch <remote-name> tag <tag-name>.
git fetch <remote-name> tag <tag-name>
归档时间:
15 年,10 月 前
查看次数:
1942 次
最近记录: