Last active
December 24, 2021 09:41
-
-
Save mrsombre/050086c4486f745df0b39f80f0f19139 to your computer and use it in GitHub Desktop.
Remove git tags
This file contains 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
# local | |
git tag -d <tag_name> | |
# remote | |
git push --delete origin tagname | |
# Delete all local tags and get the list of remote tags: | |
git tag -l | xargs git tag -d | |
git fetch | |
# Remove all remote tags | |
git tag -l | xargs -n 1 git push --delete origin | |
# Clean up local tags | |
git tag -l | xargs git tag -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment