Skip to content

Instantly share code, notes, and snippets.

@pkuczynski
Last active April 27, 2018 14:01
Show Gist options
  • Save pkuczynski/7821992 to your computer and use it in GitHub Desktop.
Save pkuczynski/7821992 to your computer and use it in GitHub Desktop.
Remove all git tags matching pattern passed as parameter
#!/bin/sh
for tag in $(git tag -l $1)
do
git tag -d $tag
git push origin :refs/tags/$tag
git push --tags
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment