git push local branch with same name as remote tag

前端 未结 7 1761
星月不相逢
星月不相逢 2020-12-12 13:36

I\'m trying to push a new local branch product-0.2 to remote where there is already a tag with the same name (but the branch itself does not exist)



        
7条回答
  •  情深已故
    2020-12-12 13:47

    Verify what tags are associated with your branch:

    git tag
    

    In my case, I had a tag with the same name of the branch. Deleting it worked:

    git tag -d [tag-name]
    

提交回复
热议问题