Skip to content

Instantly share code, notes, and snippets.

@mrsombre
Last active December 24, 2021 09:41
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 mrsombre/050086c4486f745df0b39f80f0f19139 to your computer and use it in GitHub Desktop.
Save mrsombre/050086c4486f745df0b39f80f0f19139 to your computer and use it in GitHub Desktop.
Remove git tags
# local
git tag -d <tag_name>
# remote
git push --delete origin tagname
# Delete all local tags and get the list of remote tags:
git tag -l | xargs git tag -d
git fetch
# Remove all remote tags
git tag -l | xargs -n 1 git push --delete origin
# Clean up local tags
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