“tag already exists in the remote" error after recreating the git tag

前端 未结 8 938
悲&欢浪女
悲&欢浪女 2020-12-04 06:00

I get the following error after I run the steps below:

To git@provider.com:username/repo-name.git
 ! [rejected]        dev -> dev (already exists)
error:          


        
相关标签:
8条回答
  • 2020-12-04 06:54

    In Mac SourceTree only deselect the Push all tags checkbox:

    0 讨论(0)
  • 2020-12-04 06:56

    If you want to UPDATE a tag, let's say it 1.0.0

    1. git checkout 1.0.0
    2. make your changes
    3. git ci -am 'modify some content'
    4. git tag -f 1.0.0
    5. delete remote tag on github: git push origin --delete 1.0.0
    6. git push origin 1.0.0

    DONE

    0 讨论(0)
提交回复
热议问题