Do git tags get pushed as well?

前端 未结 5 1684
青春惊慌失措
青春惊慌失措 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:47

    What I usually do is :

    [remote "publish"] # or whatever it is named
        url = ...
        push = :
        push = +refs/tags/*:refs/tags/*
    

    Meaning it pushes every branch that's already there, plus tags. It does not force push, and it does not push branch that you didn't push manually.

提交回复
热议问题