Skip to content

Instantly share code, notes, and snippets.

@hakanensari
Created March 13, 2012 15:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hakanensari/2029402 to your computer and use it in GitHub Desktop.
Save hakanensari/2029402 to your computer and use it in GitHub Desktop.
Remove all tags in a repo
# 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