Skip to content

Instantly share code, notes, and snippets.

@torryt
Created December 13, 2016 12:50
Show Gist options
  • Save torryt/4bae5b70c3ceb0ee19e2c9d06b1419d1 to your computer and use it in GitHub Desktop.
Save torryt/4bae5b70c3ceb0ee19e2c9d06b1419d1 to your computer and use it in GitHub Desktop.
Delete all local and remote git tags
# Slightly modified version of https://gist.github.com/okunishinishi/9424779
#Delete local tags.
git tag -l | xargs git tag -d
#Fetch remote tags.
git fetch
#Delete remote tags.
git tag -l | xargs git push --delete origin
#Delete local tags.
git tag -l | xargs git tag -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment