Skip to content

Instantly share code, notes, and snippets.

@timoxley
Created October 18, 2012 01:42
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 timoxley/3909404 to your computer and use it in GitHub Desktop.
Save timoxley/3909404 to your computer and use it in GitHub Desktop.
delete all local and remote tags
#!/bin/sh
# Deletes all local and remote tags.
# `git delete-tag` comes from git-extras https://github.com/visionmedia/git-extras
# Is very slow but will get there in the end.
git ls-remote --tags | awk '!/\^{}/' | awk -F tags\/ '{ print $2}' | xargs -L 1 git delete-tag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment