Skip to content

Instantly share code, notes, and snippets.

@aras-p
Created April 11, 2011 18:19
Show Gist options
  • Save aras-p/913983 to your computer and use it in GitHub Desktop.
Save aras-p/913983 to your computer and use it in GitHub Desktop.
Delete tags from remote git repository
# deletes all local tags
git tag | xargs git tag -d
# deletes all remote tags: list remote tags, skip ones that end with "{}", push remote deletion
git ls-remote --tags | awk '!/\{\}$/ {print ":"$2}' | xargs git push origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment