Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.