Skip to content

Instantly share code, notes, and snippets.

@quelicm
Forked from okunishinishi/Remove all git tags
Last active June 19, 2019 13:17
Show Gist options
  • Save quelicm/f819fba4148a1fafd1d51e677a7c9285 to your computer and use it in GitHub Desktop.
Save quelicm/f819fba4148a1fafd1d51e677a7c9285 to your computer and use it in GitHub Desktop.
Delete all git remote tags #git #tags
# Based on: https://gist.github.com/mobilemind/7883996
# List all tags
git tag
# Search tags
git tag -l tag-pattern-to-search
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment