Git: Deleting remote branches and tags from the commandline

By Druss , 16 May, 2012

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

Tags Old

All times are UTC. All content licensed under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.