Blog

Git - renaming an git tag

How to rename a git tag

First rename the old tag to new tag

git tag new-tag old-tag

Delete the old tag

git tag -d old-tag

Deleted tag 'old-tag' (was cb63c48)

If tag has been pushed under your remote git server, you have another 2 steps

git push origin :refs/tags/old-tag

To remote server git repository
- [deleted] old-tag

Share