“Updates were rejected because the tag already exists” when attempting to push in SourceTree

前端 未结 7 652
傲寒
傲寒 2021-01-29 23:10

When attempting to Push via Source Tree, I get the following error:

git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push         


        
7条回答
  •  -上瘾入骨i
    2021-01-29 23:51

    git pull --tags works really well but sometimes you can get an error even with this command. Example error message:

     ! [rejected]        example_tag      -> example_tag  (would clobber existing tag)
    

    This can be solved with the command: git pull --tags -f

    Source:

    https://github.com/concourse/git-resource/issues/233

提交回复
热议问题