Skip to content

Instantly share code, notes, and snippets.

@awilliams
Last active June 17, 2017 21:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save awilliams/498d05899337dbde8167 to your computer and use it in GitHub Desktop.
Save awilliams/498d05899337dbde8167 to your computer and use it in GitHub Desktop.
Delete multiple grepable tags from git
#!/bin/bash
for i in $( git tag -l | grep staging ); do
echo Tag: $i
#git tag -d $i
#git push origin :refs/tags/$i
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment