Skip to content

Instantly share code, notes, and snippets.

@rc1021
Forked from okunishinishi/Remove all git tags
Created November 20, 2020 07:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rc1021/7c65d1e9f62532943839a880494b8b06 to your computer and use it in GitHub Desktop.
Save rc1021/7c65d1e9f62532943839a880494b8b06 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
@rc1021
Copy link
Author

rc1021 commented Nov 20, 2020

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