How to delete a Git tag

Sometimes a prematurely tagged version needs to be re-tagged. But first the existing tag needs to be removed. Here’s how:

git tag -d {tagName}
git push origin :refs/tags/{tagName}

Leave a Reply

Your email address will not be published. Required fields are marked *