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

eiger3970
Contributor
July 10, 2015

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

0 votes
Balázs Szakmáry
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 10, 2015

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

eiger3970
Contributor
July 11, 2015

Hi, thanks.

These didn't fix it.

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

Balázs Szakmáry
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 11, 2015

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.

eiger3970
Contributor
July 11, 2015

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.

Balázs Szakmáry
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 11, 2015

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"?

eiger3970
Contributor
July 12, 2015

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.

Balázs Szakmáry
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 13, 2015

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
TAGS
AUG Leaders

Atlassian Community Events