Skip to content

Instantly share code, notes, and snippets.

@idev247
Created October 14, 2011 11:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save idev247/1286862 to your computer and use it in GitHub Desktop.
Save idev247/1286862 to your computer and use it in GitHub Desktop.
Delete all tags git (remote and local)
# 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