开发者

How do I force fetching of tags if I have the --no-tags option set

开发者 https://www.devze.com 2022-12-26 19:06 出处:网络
Whenever I run git fetch it fetches all the tags from origin. In a project with lots of tags, this can get quite bothersome. So I ran git config remote.origin.tagopt --no-tags so fetching will no-long

Whenever I run git fetch it fetches all the tags from origin. In a project with lots of tags, this can get quite bothersome. So I ran git config remote.origin.tagopt --no-tags so fetching will no-longer fe开发者_高级运维tch tags.

However, there are some times when I do want to fetch tags, or a single tag. Does anyone know how to do this? (besides removing that configuration, and running git fetch --no-tags every time)

Thanks!


To fetch a single tag, you can use git fetch <remote-name> tag <tag-name>.

0

精彩评论

暂无评论...
验证码 换一张
取 消