Skip to content

Instantly share code, notes, and snippets.

@jenkek
Last active May 7, 2018 18:21
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save jenkek/8553579 to your computer and use it in GitHub Desktop.
Save jenkek/8553579 to your computer and use it in GitHub Desktop.
How to: Delete a remote Git tag
# remove local tag
git tag -d tagname-123
# remove remote tag
git push origin :refs/tags/tagname-123
# delete multiple tags by patterns
for tag in $(git tag -l '[production|tusur]*'); do git tag -d $tag; git push origin :refs/tags/$tag; done
@gregohardy
Copy link

Exactly what I needed.

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