Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I delete a local branch on Github Desktop?

Last week I upgraded my Windows Github to Github Desktop.

It is certainly a lot faster than that last update they made for Github Windows. It also has a nice little visual timeline of commits and maybe I am being dumb, but the ability to delete local branches seems to be gone.

Before it was under “manage branches” (also gone). Any idea?

Update:

In v3.0.5 they have added the option to delete local branches from the gear menu. enter image description here

like image 209
Bruffstar Avatar asked Aug 19 '15 18:08

Bruffstar


2 Answers

On Mac OSX:

for everyone having this problem with the latest version: Select the branch that you want to delete, go to "Branch" -> "Delete Branch"

Github Desktop (Mac OSX)

On Windows:

Github Desktop (Windows)

like image 192
ProblemsOfSumit Avatar answered Sep 20 '22 16:09

ProblemsOfSumit


Here's the answer I got from github CS when I contacted them about this:

Thu 2015-08-13 3:38 PM Hi Daniel, Sorry about that! We'll be adding the option to delete branches back in an upcoming release. For now however, here's how you can delete a branch from the Git Shell: Hit ~ in GitHub Desktop to open up the repository in the Git Shell Run 'git branch -d branch_name' When you create a new branch you should see an option to publish it directly in the comparison graph. Let me know if that doesn't make sense or if you have more questions - thanks and sorry for the inconvenience! Robert

I've noticed there is a delay (about 2 or 3 minutes) between deleting the local branch in the shell and git desktop realizing the change.

UPDATE

In 3.0.5 They added Delete the current branch from the gear menu.

like image 40
danielml01 Avatar answered Sep 19 '22 16:09

danielml01