Git Tip #2 - Remove tag

Sometimes you need to remove a tag that you created. How do you do that? Replace <tag> with the tag you used.


    git tag -d <tag>
        

But this does not delete the tag remotely. So how do you make the remote tag disappear as well? Replace <tag> with the tag you used.


    git push origin :refs/tags/<tag>
        

Posted August 29, 2016

Up