Fetching all tags from a remote with git pull -
i have git remote setup following:
[remote "upstream"] url = <redacted> fetch = +refs/heads/*:refs/remotes/upstream/* when issue git pull on branch master, remote heads fetched remotes/upstream, remotes/upstream/master merged master. tags can reached fetched @ same time, convenient.
i'd git pull additionally fetch all tags remote, not directly reachable heads. tried seting tagopt == --tags, found caused tags fetch , broke everything. (junio says that's horrendous misconfiguation).
is there way make git pull fetch remote tags default, in addition remote heads?
you should able accomplish adding refspec tags local config. concretely:
[remote "upstream"] url = <redacted> fetch = +refs/heads/*:refs/remotes/upstream/* fetch = +refs/tags/*:refs/tags/*
Comments
Post a Comment