Created
October 14, 2011 11:29
-
-
Save idev247/1286862 to your computer and use it in GitHub Desktop.
Delete all tags git (remote and local)
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 | |
for c in $(git for-each-ref refs/tags/ --format='%(refname)'); do echo $c; git push origin :$c; echo; done | |
# Local | |
for c in $(git for-each-ref refs/tags/ --format='%(refname:short)'); do echo $c; git tag -d $c; echo; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment