Forked from mobilemind/git-tag-delete-local-and-remote.sh
Last active
May 13, 2020 10:45
-
-
Save sscarduzio/c8f920b77646cc38a6285814b4f6f6e2 to your computer and use it in GitHub Desktop.
How to delete multiple git tags locally and remote
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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