Skip to content

Instantly share code, notes, and snippets.

View jeffremer's full-sized avatar

Jeff Remer jeffremer

View GitHub Profile
@jeffremer
jeffremer / cleanup_tags.sh
Last active December 14, 2015 14:29 — forked from nuc/gist:1834765
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