Created
September 2, 2015 14:00
-
-
Save derhasi/699dee86093cd3bcc6d0 to your computer and use it in GitHub Desktop.
Bulk delete tags
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
# git tag | grep build | while read -r TAGNAME; do echo "this is tag $TAGNAME"; done | |
# git push --delete origin $TAGNAME; git tag -d $TAGNAME | |
# | |
# Delete all tags containing a specified search term: e.g. "build" in this example | |
# | |
KEYWORD="build"; | |
git tag | grep $KEYWORD | while read -r TAGNAME; do git push --delete origin $TAGNAME; git tag -d $TAGNAME; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment