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

Hello,

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.

Hello,

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

414 views 0 1
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