# How to rename a git tag

> Renaming git tags is sometimes needed. This is a straight forward method to rename a tag. If you have several contributors, they'll need to prune their…

- URL: https://graffino.com/til/rename-git-tag
- Author: Daniel Gomonea
- Channel: command-line
- Published: 2020-06-15
- Updated: 2021-01-15

Here is how I rename a tag old to new:
```
git tag new old
git tag -d old
git push origin :refs/tags/old
git push --tags
```
Finally, make sure that the other users remove the deleted tag. Please tell them (co-workers) to run the following command:

```
git pull --prune --tags
```
