Created
October 30, 2012 11:26
-
-
Save rafeca/3979700 to your computer and use it in GitHub Desktop.
Remove the tags that finish with -a1, -a2, -b1, -b2, ...
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
# First, remove the tags from the origin repository | |
$ git tag -l | grep -e '-[a-zA-Z][0-9]*$' | awk '{ print ":" $1}' | xargs git push origin | |
# Then, remove the tags locally | |
$ git tag -l | grep -e '-[a-zA-Z][0-9]*$' | xargs git tag -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment