Deleting a tag in Git, locally and on the origin

December 21st 2014

I've already covered tagging a release in git read more here, now what happens if (for some reason) you need to delete the tag?

It's quite easy, first, we'll delete the local version:

Text Snippet:
git tag -d 1.0.0

Now, we need to push that change to the origin:

Text Snippet:
git push origin :refs/tags/1.0.0

Just substitute the '1.0.0' with your tag name!