Archive for September, 2016

At the moment, I’m playing with the release plugins in a sandbox project and it’s created lots of tags. I want to start afresh, so I’ve written a little utility to get rid of all the tags

git tag --list | xargs -I {} git tag -d {}
git fsck --unreachable 2>&1 | grep 'unreachable tag' | awk {'print $3'} | xargs git show | grep ^tag | awk {'print $2'} | xargs -I {} git push origin :refs/tags/{}

(2 years since the last post, … shocking 😀 )