3ehmga
Last Updated: February 25, 2016
·
774
· nicolaslazartekaqui
Img 3566

Git - Deleting remote branch

As of git 1.7.0, you can do this way

$ git push <remote> --delete <branchname>

In earlier versions (git > 1.5.0) you have to do

$ git push <remote> :<branchname>

To remove a branch in Github, in remote use origin.

Say Thanks
Respond

2 Responses
Add your response

5631
713f7d9304e6fe6597881063bbe14ae0

did you want to say git < 1.5.0 ?

over 1 year ago ·
5633
Img 3566

@ashutoshraina no, what I said is right, this action was included since version 1.5.0 look here https://github.com/gitster/git/blob/master/Documentation/RelNotes/1.5.0.txt#L172-L174

over 1 year ago ·
Filed Under