Rename a Git tag

Create a new tag alias :

git tag new_tag old_tag

Delete the old tag :

git tag -d old_tag

Push the changes :

git push –delete origin old_tag

git push origin :refs/tags/old_tag

Remove the local tags :

git pull –prune –tags

That’s all 🙂

Advertisements