Skip to content

Instantly share code, notes, and snippets.

@Sitebase
Created January 9, 2015 08:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sitebase/d845bb38a162a44c58c7 to your computer and use it in GitHub Desktop.
Save Sitebase/d845bb38a162a44c58c7 to your computer and use it in GitHub Desktop.
Batch git tag delete locally and remote
# replace "release-" on the following line with the string you want to search for
# or remove the "| grep release-" part to remove all local and remote tags
for t in `git tag | grep release-`
do
echo "delete $t"
git push origin :$t # Delete remote
git tag -d $t # Delete local
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment