Skip to content

Instantly share code, notes, and snippets.

@ThomasBurleson
Forked from jenkek/gist:8553579
Created October 21, 2017 22:05
Show Gist options
  • Save ThomasBurleson/072c194a8142d93154b480bd0c17d96a to your computer and use it in GitHub Desktop.
Save ThomasBurleson/072c194a8142d93154b480bd0c17d96a 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment