You are here

Git: Deleting remote branches and tags from the commandline

Submitted by Druss on Thu, 2012-05-17 00:50

Since it wasn't working well enough in Eclipse, I had to muddle around for a solution for the command-line. I found the one below and it's nifty:

Deleting a branch:
git push origin :mybranch

Deleting a tag:
git push origin :mytag

IOW, the syntax is identical for both tags and branches.

Cheers!

Tags: