Skip to content

Instantly share code, notes, and snippets.

@tigerhawkvok
Created June 10, 2014 20:01
Show Gist options
  • Save tigerhawkvok/2eb2cd514a733854e96c to your computer and use it in GitHub Desktop.
Save tigerhawkvok/2eb2cd514a733854e96c to your computer and use it in GitHub Desktop.
Delete all remote tags
#!/bin/sh
# From http://isabelcastillo.com/bulk-delete-tags-in-local-git-repo-and-github-com
git ls-remote --tags origin | awk '/^(.*)(\s+)(.*[a-zA-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