Skip to content

Instantly share code, notes, and snippets.

@kaleocheng
Forked from okunishinishi/Remove all git tags
Created December 28, 2017 06:18
Show Gist options
  • Save kaleocheng/cba17666723a3943be0dbd3c41f39236 to your computer and use it in GitHub Desktop.
Save kaleocheng/cba17666723a3943be0dbd3c41f39236 to your computer and use it in GitHub Desktop.
Delete all git remote tags
#Delete local tags.
git tag -l | xargs git tag -d
#Fetch remote tags.
git fetch
#Delete remote tags.
git tag -l | xargs -n 1 git push --delete origin
#Delete local tasg.
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