Skip to content

Instantly share code, notes, and snippets.

@jeffremer
Forked from nuc/gist:1834765
Last active December 14, 2015 14:29
Show Gist options
  • Save jeffremer/5100658 to your computer and use it in GitHub Desktop.
Save jeffremer/5100658 to your computer and use it in GitHub Desktop.
Bulk delete a set of tags filtered by FILTER.
export FILTER="hudson"
git ls-remote --tags origin | awk '/^(.*)(\s+)(.*[a-z0-9])$/ {print ":" $2 }' | grep $FILTER | xargs git push origin
git tag -l | grep $FILTER | xargs git tag -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment