Skip to content

Instantly share code, notes, and snippets.

@marcelosantos
Last active May 15, 2017 13:08
Show Gist options
  • Save marcelosantos/e0f3504e1c96f60e4b5cc60784ab57ad to your computer and use it in GitHub Desktop.
Save marcelosantos/e0f3504e1c96f60e4b5cc60784ab57ad to your computer and use it in GitHub Desktop.

How to: Delete a remote Git tag

You probably won't need to do this often (if ever at all) but just in case, here is how to delete a tag from a remote Git repository.

If you have a tag named 'tag_example' then you would just do this:

git tag -d tag_example

Sending changes to remote

git push origin :refs/tags/tag_example

That will remove 'tag_example' from the remote repository.

Based on https://nathanhoad.net/how-to-delete-a-remote-git-tag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment