SourceTree error: 'git log' failed with code 128:'fatal: bad revision 'origin/master''


I changed to a different repository on SourceTree and the SourceTree sees my local working git directory, but when I press Commit I receive the error:SourceTree error: 'git log' failed with code 128:'fatal: bad revision 'origin/master''

1 answer

There are several questions about this already. This and this seem to have working answers.

Hi, thanks.

These didn't fix it.

I think I need some clear instructions on setting up SourceTree and how to change repositories.

If you could provide some info about whether you are using the Mac or the Windows version and what exactly you mean by "changing repositories" (switching tabs? opening a shortcut? creating a new clone?), that would be very useful.


I'm on Mac OSX 10.10.3.

I need to work on a Bitbucket repository setup on Bitbucket account1.

Before, I was working on a Bitbucket repository on Bitbucket account2.

My local directory is in ~/Documents/Git/Account1Work and ~/Documents/Git/Account2Work.

I see you already have the two clones. So are you just switching between already-open tabs in SourceTree or what are you doing when "changing repos"?

Hello, I log out of the Bitbucket account, then log in to a 2nd Bitbucket account. In SourceTree, I try to connect SourceTree to the new 2nd Bitbucket account.

What you do on the web interface (log in/out) has no effect on what happens in ST. What do you exactly do when you "connect SourceTree to the new 2nd Bitbucket account"?

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

647 views 0 4
Read article

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