Error 128 after removing local branch (bug?)


I'm new to git (used svn before). I play around with git for a while (command-line) and now i want to switch to Source Tree. This app is really nice. But now i have a little problem with it.

I clone my test-git-repo from github. It is an simple repo with some text-files with a few lines in it. I made a local branch (mybranch). Make two commits. I've changed the same line in the master-branch (to cause a merge conflict - because i want to test this scenario). When i merge (or merge with rebase checked) i get my conflict and i fixed it with the interal tools from source tree. After this step i want to remove the branch (mybranch). I checkout the master and make a right click onto 'mybranch' and click 'delete mybranch'. In the popup window i will not check the 'force remove' checkbox and then i press remove. After this the Source tree starts printing the error message "'git log' failed with code 128:'fatal:bad revison 'mybranch'' " every time i do something in source tree. I can only fix that if i close the actual repo-window and start the same repo from the start-window of source tree where i can add/select my repo.

Did i do something wrong? or is this a bug?

This error is reproduceable.

My setup:

OS: Mac OS X Mavericks
Source Tree: V1.8.1
Git: Embedded version (

Thanks in advance


1 answer

Same problem here Sept 2015.

Version (



Suggest an answer

Log in or Join to answer
Community showcase
Maarten Cautreels
Posted yesterday in Off-topic

Friday Fun: What's your favourite beer/drink

As a Belgian, beer-lover and home brewer, beer is one of my great passions. I love the fact that with just a few ingredients (usually just water, hop and malt) you can create so many different tastes...

242 views 35 9
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot