How to update your local git tags with the remote tags

When someone deletes a git tag on a remote and creates a new one with the same name, you might get a similar error like the one below while trying to do a git command, a git fetch for example.

```bash
![rejected]           2.10.14    -> 2.10.14 (would clobber existing tag)
```

The solution is to update your local tags with the new remote tags. 
This is how:

```bash
git fetch --tags -f
```

Zeno Popovici
09 Sep 2021
« Back to post