Skip to content

Instantly share code, notes, and snippets.

@jbrauer
Created May 7, 2014 22:37
Show Gist options
  • Save jbrauer/61f2ac6ed0612d237a37 to your computer and use it in GitHub Desktop.
Save jbrauer/61f2ac6ed0612d237a37 to your computer and use it in GitHub Desktop.
A quick routine for cleaning up git tags both locally and remotely
#!/bin/bash
remotes=`git remote`
for t in `git tag | grep $1`
do
echo "Removing $t"
git tag -d $t
for r in $remotes
do
git push $r :$t
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment