As much as I love GitBox, it doesn’t actually provide the ability to delete tags from within the interface:

GitBox and The WordPress Plugin Boilerplate
Sad, right?
Occasionally, there are times in which I need to remove a tag because I need to go back and make some final adjustments to a commit prior to pushing to my current branch (which is usually just `master` anyway).
This means that I need to hop over into Terminal to issue a few git commands in order to delete a Git tag from the command line.
Let’s say that you have a tag called 3.0 that you want to rollback. Luckily, this is a simple matter of issuing the following commands:
git tag -d 3.0 git push origin :refs/tags/3.0
You may be prompted to enter your username and password if you haven’t already. Other than that, you’re good to go.
Your console should result in something like the following:

Deleting a Git Tag in Terminal
Easy enough, right?
After this, you should be good to go to hop back into your Git client of choice.
Leave a Reply
You must be logged in to post a comment.