[Bitbucket] existing tag error

아현·2024년 7월 10일
0

개발환경

목록 보기
13/16

출처


1. Error Description


git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags origin refs/heads/master:refs/heads/master 
Pushing to https://user@github.com/repo.git
To https://user@github.com/repo.git
 = [up to date]      master -> master
...
 ! [rejected]        example_tag -> example_tag (already exists)
updating local tracking ref 'refs/remotes/origin/master'
error: failed to push some refs to 'https://user@github.com/repo.git'
hint: Updates were rejected because the tag already exists in the remote.
Completed with errors, see above



2. Trouble Shooting


방법 ①


git pull --tags



방법 ②


  • -f: option in the command to override the local conflicting tags with their remote versions.

git pull --tags -f



profile
For the sake of someone who studies computer science

0개의 댓글