Skip to content

Instantly share code, notes, and snippets.

@b22n
Last active April 12, 2018 05:10
Show Gist options
  • Save b22n/5a235c58104d8dde0f960b13b7bde759 to your computer and use it in GitHub Desktop.
Save b22n/5a235c58104d8dde0f960b13b7bde759 to your computer and use it in GitHub Desktop.
shell script for git tags batch deletion
#!/bin/bash
for i in $( git tag | grep $1 ); do
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