SourceTree 2.4 fails to connect to GitHub with OAuth after upgrade from 2.3.2

I upgraded from 2.3.2 and saw the following error upon Fetching my repo. 

I then configured my Github Account from Sourcetree Prefs, and completed the OAuth wizard in Sourcetree, inputting my 2FA number. The Sourcetree GUI had "HTTPS" as the method, and after the OAuth did not show "connected" anywhere. I assumed it was all good, retried my Fetch, and got the same error.

I then reconfigured multiple times using OAuth, saw no errors during that process, but only at the end I saw the following error.

I then switched to using SSH, generated a local SSH key (not modifying my current setup..?), published that key to GitHub, and still saw the following error.

I finally restored SourceTree 2.3.2 from the Trash Can and am able to work again.

 

git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree fetch --prune origin 
Permission denied (publickey).
fatal: Could not read from remote repository.
 
Please make sure you have the correct access rights
and the repository exists.
Permission denied (publickey).
fatal: Could not read from remote repository.
 
Please make sure you have the correct access rights
and the repository exists.
Permission denied (publickey).
fatal: Could not read from remote repository.
 
Please make sure you have the correct access rights
and the repository exists.
Permission denied (publickey).
fatal: Could not read from remote repository.
 
Please make sure you have the correct access rights
and the repository exists.
Completed with errors, see above

4 answers

Exact same problem here.  Have not tried to downgrade yet.

Had this problem with 2.4 as well.

Can't get any reliable connection to Github. OAuth simply doesn't work, with or without 2FA (I turned it off). Basic mode works, but prompts for password all the time. Even SSH with key file.

Bitbucket works fine.

Downgraded to 2.3.2 and at least can work again.

Workaround here: https://jira.atlassian.com/browse/SRCTREE-4466

 

Will be fixed in upcoming SourceTree, according to Atlassian.

where is v2.3.2 sourcetree ?....

Suggest an answer

Log in or Join to answer
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 ...

273 views 0 3
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
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