Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

MacOS can't connect to GitHub

SourceTree version: 2.5.1

Problem: Can't successfully connect to GitHub repositories via HTTPS or SSH

I am not using two-factor authentication.


Behavior: I can connect to my Github Account successfully (using HTTPS or SSH)

Screen Shot 2017-05-23 at 10.29.28 AM.png

However, when I try to connect to remote repos, I get an error message like this:

Screen Shot 2017-05-23 at 10.30.31 AM.png


Sometimes the error is 'Could not authorize request with the available token' and other times it is 'Bad credentials'. 

1 answer

1 accepted

0 votes
Answer accepted
Manju Atlassian Team May 25, 2017

Can you please try with version 2.5.2?

You can download the build from

Also, you can delete all your keychain items for GitHub before adding it agian on SourceTree just to make sure there isn't some old token leading to the same issue again.



Many Thanks it works for me!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

7,103 views 5 13
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you