Created
March 13, 2012 15:25
-
-
Save hakanensari/2029402 to your computer and use it in GitHub Desktop.
Remove all tags in a repo
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 -l | xargs git tag -d | |
# Remote | |
git ls-remote --tags origin | awk '/^(.*)(\s+)(.*[a-z0-9])$/ {print ":" $2}' | xargs git push origin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment