How to Remove Tags from a Git Repository

If you use tags with your Git repositories you know that sometimes it makes sense to remove/delete these tags. Below are samples of removing both local and remote tags from your Git repo.

Delete Tag from Local Repository

git tag -d <tag name>

Delete Tag from Remote Repository (e.g. GitHub)

git push origin :refs/tags/<tag name>

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 class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">