Last active
May 7, 2018 18:21
-
-
Save jenkek/8553579 to your computer and use it in GitHub Desktop.
How to: Delete a remote Git tag
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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
Exactly what I needed.