Created
July 3, 2020 21:51
-
-
Save vishin-pavel/f27385a2d56d8a4f82052e71d59d8053 to your computer and use it in GitHub Desktop.
remove git tags by pattern
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
#remove from origin | |
git ls-remote --tags --refs origin "v0.0.5*" | cut -f2 | xargs git push origin --delete | |
#remove local | |
git tag -d $(git tag -l "v0.0.5*") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment