Do git tags get pushed as well?

前端 未结 5 1695
青春惊慌失措
青春惊慌失措 2020-11-29 16:27

Since I created my repository it appears that the tags I have been creating are not pushed to the repository. When I do git tag on the local directory all the t

5条回答
  •  半阙折子戏
    2020-11-29 16:56

    And if you want to force fetch all the tags, you may set it in the config by:

    git config remote.origin.tagopt --tags
    

    From the docs:

    Setting this value to --no-tags disables automatic tag following when fetching from remote . Setting it to --tags will fetch every tag from remote , even if they are not reachable from remote branch heads. Passing these flags directly to git-fetch(1) can override this setting. See options --tags and --no-tags of git-fetch(1).

提交回复
热议问题