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

SourceTreeForMac keeps asking me for github authentication

I am trying to list my available remote repositories to find one to clone.

I am prompted for my github password because:

  • I had to reset my login keychain
  • My github password was changed recently

When I attempt to refresh the list, I get an error: 

message: Requires authentication

Sometimes I get a small popup with username/password. I fill in the password (which I have verified is correct), and I still get the same error message.

Other times, I get a large dialog to allow SourceTreeForMac from Atlassian access to my github account. Again, I put in the same username and password.

I still get an error message saying that it failed; however, I also got an email implying that it succeeded.

One thing to note is that my list of accounts is using an ssh key, not a username/password (basic/ssh/default).

I recently switched all of my repositories from using https to ssh.


P.S. I realize that there are at least a few issues with similar (or identical) titles, but none seemed to be the same problem and/or there were no clear solutions.

1 answer

0 votes
Manju Atlassian Team Sep 05, 2018

Hi there,

Very sorry for the inconvenience caused by Sourcetree. Have you tried removing your github account and adding it back? 

Before you do so, please make sure you also remove any keychain items that might have been not cleaned up by Sourcetree. We see these issues sometimes when there is a problem accessing keychain or there are duplicates in the keychain which aren’t visible when inspected. Many a times, a restart of the Mac also has helped get around permissions in keychain. 

Should this not resolve the problem, please feel free to get back here and we’ll help you out.

I tried removing my github account and then re-adding it.

I also removed my github password from my keychain, and then tried removing/re-adding my github account in sourcetree.

I am still unable to view my repositories in the remote repository browser.

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,154 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