Skip to content

Instantly share code, notes, and snippets.

@prograhammer
Forked from okunishinishi/Remove all git tags
Last active September 14, 2019 06:43
Show Gist options
  • Save prograhammer/b46d6cc884fb5f35d32e9f5fc1ed1684 to your computer and use it in GitHub Desktop.
Save prograhammer/b46d6cc884fb5f35d32e9f5fc1ed1684 to your computer and use it in GitHub Desktop.
Delete all git remote tags
#Delete local tags.
git tag -d $(git tag -l)
#Fetch remote tags.
git fetch
#Delete remote tags.
git push origin --delete $(git tag -l) # Pushing once should be faster than multiple times
#Delete local tags.
git tag -d $(git tag -l)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment