Skip to content

Instantly share code, notes, and snippets.

@KevinRohn
Forked from okunishinishi/Remove all git tags
Last active June 7, 2021 09:59
Show Gist options
  • Save KevinRohn/348c9c1ad1d1fe15a0fa2edbfeab679f to your computer and use it in GitHub Desktop.
Save KevinRohn/348c9c1ad1d1fe15a0fa2edbfeab679f to your computer and use it in GitHub Desktop.
Delete all git remote tags #commands
#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