How to delete a git tag locally and remote
Today I made a mistake of publishing a wrong
git tag and I asked myself: What the fuck do I do now?
# to delete a local tag just run e.g.: v1.9.1 git tag -d v1.9.1 # if you already published (like me) git tag -d v1.9.1 git push origin :refs/tags/v1.9.1 # another approach git push --delete origin v1.9.1 git tag -d v1.9.1
Always double-check before pushing something to remote 😂