How to get rid of "would clobber existing tag"

Question

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.

Answer

You should update your local tags with remote tags:

git fetch --tags --force

Then pull again.

Reason

On remote, someone deletes a tag and creates a new one with the same name, then this will happen on your local

How to color the Git console?

How can I show what a commit did?