Skip to content

Instantly share code, notes, and snippets.

@rafeca
Created October 30, 2012 11:26
Show Gist options
  • Save rafeca/3979700 to your computer and use it in GitHub Desktop.
Save rafeca/3979700 to your computer and use it in GitHub Desktop.
Remove the tags that finish with -a1, -a2, -b1, -b2, ...
# 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