Removing Git Tags

Posted: 26th March 2015 by Tim in Git
Tags: , , , , , , , , , , , ,

If you’ve accidentally added a git tag, or if you want to remove old tags, these tags can be removed with the following three commands:

git tag -d <my_tag>
git push origin :<my_tag>
git push --tags

For example, if you want to remove the tag bad_tag, you would use these commands:

git tag -d bad_tag
git push origin :bad_tag
git push --tags

  1. Tom says:

    Hello Tim,

    Just wanted to point out that you don’t need to run “git push –tags”. The first line removes the tag from your local repository and the second removes it from the remote. You might use this command to push local tags to the remote repository for the first time.