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 *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>