SourceTree keeps asking to authenticate again over and over...

I'm using source tree, am getting fetch updates but on a fairly regular schedule, get a popup to re-authenticate. Why? How do I fix it?


6 answers

The best way to avoid this would be to use SSH but Stash should be able to store your password.


Go to Tools->Options->Authentication and make sure that your hostname, username, and password are all saved there.


Screen Shot 2015-05-04 at 1.33.55 PM.png

I have the same problem, and my password is supposedly saved in SourceTree...

I've resorted to removing all repos from Sourcetree except for one, which uses SSH. I still get this incessant popup.



I had the same. Very annoying. Finally I figured out it had something to do with my account being remembered twice. As and ->

remove the second one as short version will be added automatically. It helped in my case. Hope it works for you as well.




Ty Adam!!
I had Bitbucket account saved in the first and second position (short and long version) in the "saved passwords " list.

Source Tree kept asking the third saved password, continuously.

I deleted the long Bitbucket version. Your solution worked for me!!


Yes - this solved, I had >1 account saved as well.

Add you BitBucket account, use the Oauth verify account - then ensure you only have one BitBucket account - set that one as default - close down SourceTree and start up again - finally the incessant prompt gone - +1 vote for this.

Switching to Oauth verify worked. Thank you! This was maddening ... 

Alas, I tried everything I could think of including the above, wiping completely, reinstalling. Used SourceTree since before Atlassian acquired it.   But I've had to switch away.

Any app that prompts the user for a password every few seconds should recommend how to fix the issue along the way. 

Found the issue here:

marked as duplicate to this, but the permissions must be private:

Hope they fix it and we can use it again in the future. In the meantime there are lots of other clients.

Brendan, I has the same issue with the Authentication dialog constantly popping up. I managed to fix it by explicitly adding the username to all remote.url configurations.

  1. Identify all repositories bookmarked in your SourceTree app (even if hidden in UI).
  2. Open <repository>/.git/config/config
  3. Add the "username" you use to connect to GIt server to all urls like this:
    • url = ssh://username@your-git-server:port/repository

Hope that helps.

Remove any default user names from the authentication tab, and always use urls with format. Remember password will work again.

Remove all other authentications section in sourcetree other than git hub.

Then click Add or either go to Hosted repositories(to quickly check if it was successful) and click on edit accounts.

In credentials select OAuth and select refresh token. You will be redirected to bitbucket website and click on Grant access.

Now goto your fresh account in sourcetree and select Set as Default.

Done. Now you should see all your repositories in hosted repositories. It shows login error if it is not successful

I have had a problem that I have had to shut down sourcetree totally on mac (command Q) and restart in order to push.  I could then successfully push my changes.  Strangely I can always pull changes, only on push did it fail.

I am now experiencing an issue that I have to constantly connect using auth button to push.  Lasts about 5 minutes and I have to connect again.  I can still pull new changes.

Note I am on Mac.   I am not being asked for my Mac Password,  it is the actual auth to Bit Bucket that I have to sign on to, I am using google Auth.   I did have github sign on as well.  I removed this and my original bit bucket account then reinserted.   No difference.   Given it is mac password it is not issue 1947.

As noted elsewhere 1946 is private,  cannot review for similarity.

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

659 views 0 4
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