Created
December 13, 2016 12:50
-
-
Save torryt/4bae5b70c3ceb0ee19e2c9d06b1419d1 to your computer and use it in GitHub Desktop.
Delete all local and remote 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
# Slightly modified version of https://gist.github.com/okunishinishi/9424779 | |
#Delete local tags. | |
git tag -l | xargs git tag -d | |
#Fetch remote tags. | |
git fetch | |
#Delete remote tags. | |
git tag -l | xargs git push --delete origin | |
#Delete 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