I'm using git in VSCodium and each time I try to pull git is complaining.
Looking into the log I see
> git pull --tags origin master From https://github.com/MY/REPO * branch master -> FETCH_HEAD ! [rejected] latest -> latest (would clobber existing tag) 9428765..935da94 master -> origin/master
Doing the command with --force
helps until the next time.
It's unclear to me what's going wrong here. What happened and how can I resolve this issue?
I mean: Besides trashing my local repo and cloning again.
To delete the Git tag from the local repo, run the git tag -d tag-name command where tag-name is the name of the Git tag you want to delete. To get a list of Git tag names, run git tag.
Select and expand the "Tags" tab on the left. Right-Click on the tag you want deleted. Select "Delete YOUR_TAG_NAME" In the verification window, select "Remove Tag From Remotes"
In order to checkout a Git tag, use the “git checkout” command and specify the tagname as well as the branch to be checked out. Note that you will have to make sure that you have the latest tag list from your remote repository.
You can push all local tags by simply git push --tags command.
You should update your local tags with remote tags:
git fetch --tags -f
Then pull again.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With