How do I delete a Git branch with TortoiseGit

Tarion picture Tarion · Mar 14, 2012 · Viewed 91.5k times · Source

Is there an option to delete a branch with TortoiseGit?

I found a solution for the commandline. Is there an implementation in TortoiseGit?

Answer

Sandro Munda picture Sandro Munda · Mar 14, 2012

You should read this article: Remote branches with TortoiseGit

According to this blog post:

...remove the local branch by first opening up the Checkout/Switch dialog to get at the Browse refs dialog.

enter image description here

In the Browse refs dialog we can right click on the local branch and choose to delete it.

enter image description here

To delete a remote branch we can do the same thing, but instead of right clicking on our local branch we expand the remotes tree in the left part of the dialog and then locate the remote branch.

enter image description here