Skip to content

Instantly share code, notes, and snippets.

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 sscarduzio/c8f920b77646cc38a6285814b4f6f6e2 to your computer and use it in GitHub Desktop.
Save sscarduzio/c8f920b77646cc38a6285814b4f6f6e2 to your computer and use it in GitHub Desktop.
How to delete multiple git tags locally and remote
# Usage: ./git-tag-delete-local-and-remote.sh 1.19
# will delete tags: "1.19.1" "1.19.2" "1.19.3" ...
for i in `git tag|grep $1`
do
git push --delete origin "$i"
git tag -d "$i"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment