Skip to content

Instantly share code, notes, and snippets.

@b4lk0n
Forked from okunishinishi/Remove all git tags
Created November 18, 2019 08:51
Show Gist options
  • Select an option

  • Save b4lk0n/ce9ffa9ac6bb0819df71ae63abc98fce to your computer and use it in GitHub Desktop.

Select an option

Save b4lk0n/ce9ffa9ac6bb0819df71ae63abc98fce 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