Sourcetree keeps asking for bitbucket password on windows

password I enter on Sourcetree is correct and works for a few minutes but then i get asked to reenter it. And yes I tell it to remember the password. this started happening after I updated to the most recent version and wow is it annoying. 

25 answers

Guys, Please try this as well. SourceTree is having the Embedded version of Git. By default, SourceTree will not use System installed Git, instead it will be using the embedded git. This credential-cache problem will not be there in latest Git version. I'd suggest to upgrade your embedded git version of sourcetree and configure sourcetree to use system git instead of embedded git.

How to do that? 

1. In SourceTree, Navigate to Tools > Options > Git

2. Look for the Git Version section

3. Observe what version of Git System has and What version of Git embedded in sourcetree

4. Switch to the system git version (if that is latest)

5. Once done, restart the sourcetree and try again the login, this time it will not ask you again

I was having the same problem having upgraded to SourceTree 2.7 from 2.6 on Mac OS High Sierra and this solution finally solved my issue (I didn't even have to log out of SourceTree)

This is the right answer for the problem. I am on Windows

Great.. perfect solution for my problem..

I have the same problem and I've always used the System Git, not Embedded Git.

I have even removed the BitBucket account completely from the accounts (Tools > Options > Authentication) and Windows' own credential manager (Control Panel > User Accounts > Credential Manager > Windows Credentials)

git 2.18.0 (system), SourceTree 2.16.10

This seems to be something else entirely (my guess would be the "registration")

This is not work for me (git 2.18.0 (system), SourceTree 2.16.10). I've also tried to remove credentials from source tree and windows account manager, but "bitbucket login" window still appears every several minutes (even after I entered right password or refresh auth token sucessfully (green sign)

This worked for me (i'm on Windows).

Go to View > Show Hosted Repositories > Edit Accounts > find the relevant account and click 'Edit' > Change Password.

Hopefully it works for some other poor souls out there!

Thanks! It worked for this poor soul out there! laugh

Thanks, This worked for me as well.

I am having the same problem. I noticed it when I upgraded to Windows 10. I can't say for sure it's because of the upgrade to the OS.

 

For what it's worth, I can get it to stop temporarily by clicking the "Show hosted repositories" icon at the bottom left when you open source tree. Then "Edit Accounts", click the account and "Edit", then "Change Password".... It will eventually drop the password again. It's incredibly frustrating, and I am about to drop sourcetree and possibly Bitbucket due to this, if its not fixed.

Same problem here! It's infuriating.

Me too... :-(

I started having this problem too when I upgraded to SourceTree 2.1 and yes it's very annoying

(I'm on El Capitan 10.11.2)

try using OAuth with connect account

Sourcetree seems to have some problems importing old config files from a previous Version.
Changing stuff in "Edit Accounts ..." / Hosted Repositories seems to make Sourcetree rewrite some of it and solves the Problem.
Also try to change the preferred Protocol... that did the trick for me.

 

First time and ~a year ago I had this problem I started deleting Stuff in C:\Users\%username%\AppData\Local\Atlassian\SourceTree  

I cant remember exactly what I did back then, but I think deleting Accounts.json (and reentering the data in Sourcetree) worked.

 

I also resolved the problem by removing the map:

C:\Users\%username%\AppData\Local\Atlassian\SourceTree  

I have the same problem connecting to Visual Studio Online.

I removed my user name in authentication tab and then pulled, got prompted for the password and I clicked the box that says save the password on the prompt and then it worked..

same problem, windows 10. tried everything.., HELP!!!!

I use windows insider and have same problem still....ask login, ask login, ask login...!

Same problem here on Win 10, Sourcetree 2.4.8.0. I've treid all of the suggestions here and the password prompt still pops up all of the time. It's incredibly frustrating.

Same here, I have tried everything and updated to latest version, can't use sourcetree atm

Me too!

@James Naylor - Please try my detailed suggestion given below. Update git version used by sourcetree 

1 vote

my enviroment v2.6.6.0 (windows 7 32bit)

Atlassian login popup dialog always on desktop!

i updated git version.

now ... dialog popup going ...

1 vote

Hey Guys, i found the solution..

uninstalled sourcetree.. 

problems went gone.

Every time SourceTree asks me if I would recommend to a friend, I think about how many times I have to log in over and over and over before I answer. How can a basic thing like remembering credentials be so broken?

Having the same issue, anyone find a solution?

After tthe Sourcetree last upgrade in MAY I can't log in Sourcetree anymore -  I'm on Windows 8.

I've done everything, but I coldn't find an answer. 

I've tried Go to View > Show Hosted Repositories > Edit Accounts > find the relevant account and click 'Edit' > Change Password.

The system aproves my Atlassian PWD but gives an error message after. "Please enter your Bitbucket/GitHub username" . 

But from June "Atlassian account is coming to Bitbucket!" - eveyone has received this mail, so it's supposed to be only one account for all the Atlassian app.

How can this bug be solved, anyone found a solution?

 

 

 

 

I'm in a conversation with a support rep about this, and it sounds like it's caused by not having an explicit username in the url for your repository. Unfortunately, for private subrepositories, that's just not an option.

This did not fix the problem for me. I click "show hosted repos" and nothing ever loads in the window. I added my Bitbucket account info, again, for the 15th time, and Sourcetree is still asking me to authenticate. Pathetic. For now, I'll revert to version 1.8

The fix for me was to install git on the computer and use that instead of the embedded version. After a git pull in cmd and entering the credentials there, I can now work in SourceTree without it asking for password all the time.

Asking password again and again since i changed my credentials from Atlassian site. I reverted my credentials back to old ones and pull and push work fine without asking password but sourcetree still asks password for nothing (2 times if i cancel).

The same problem when updating to 2.3.1.

It helped to me to delete bitbucket account in Tools -> Options -> Authentication and then to edit %AppData%\Local\Atlassian\SourceTree\passwd (in Notepad++) and to delete any unused/wrong username password pairs. 

After deleting one for bitbucket it stopped asking for password.

on macOS High Sierra 10.13.3 I changed the authentication mode from SSH to OAuth to Basic / HTTPS and it worked.

This saved my day.

had the same. it wasn't really source tree issue, but i fixed it by removing httpusepath = true line

from: 

> git config --global --edit

Well here's what I did to fix the problem. Incidentally, I had first updated to the latest version of SourceTree (2.6.6.0) and that didn't help.

  • Tools > Options
  • Select the Authentication tab
  • I only have one account there under the Accounts section (my bitbucket account). I clicked it. That expanded some content and Edit / Delete links. I clicked on the Edit link and a new dialog window titled "Edit Hosting Account" opened.
  • Under the Credentials section of this dialog I clicked the "Refresh OAuth Token" button which immediately opened a browser window to a local address like the following (edited for security): http://localhost:34106/?state=authenticated&code=kjDSFOEWIN4394kdfjaieo
  • At the bottom of the dialog window I could then see an "Authentication OK" label with a green checkbox to its left
  • Click OK on this dialog and then the Options dialog that spawned it
  • I retried my Git operations and everything seems to be working now. The login dialog didn't appear
0 vote

This is what I discovered (after searching for 'sourcetree' in my drive C:):

  1. Uninstall SourceTree
  2. Delete folder C:\Users[username]\AppData\Local\Atlassian\SourceTree
  3. Delete folder C:\Users[username]\AppData\Local\SourceTree
  4. Reinstall SourceTree

wow, almost 3 years later And I have been having this problem on and off... Atlassian. I have been patient. Get it together and fix this nonsense. You are supposed to help with software development not make it frustrating.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

566 views 1 2
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