Skip to content

Instantly share code, notes, and snippets.

@heralight
Forked from okunishinishi/Remove all git tags
Last active November 11, 2017 16:31
Show Gist options
  • Save heralight/c92294fc232fb9f1b5fd258ba9ae58c6 to your computer and use it in GitHub Desktop.
Save heralight/c92294fc232fb9f1b5fd258ba9ae58c6 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)
# for shell copy paste:
git tag -d $(git tag -l)
git fetch
git push origin --delete $(git tag -l)
git tag -d $(git tag -l)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment