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

Cannot login with Bitbucket in SourceTree after linking with Atlassian ID/Google

Hello

I cannot login on Bitbucket in SourceTree anymore. I have just completed the merge between my Bitbucket profile and Atlassian ID.

The important point is that I login to my Atlassian ID with my Google credentials, so no specific login/password.

I think the issue is due to SourceTree trying to connect with my previous Bitbucket login/password. I should probably provide the login/password used for my Atlassian ID, but since I am using Google "auto-login", I do not have them directly.

I have tried to set back a classic login process with Atlassian ID, but this not seems possible.

 

How to correctly setup Bitbucket in SourceTree in my situation ?

Or, how to remove Google login and revert to a standard login/password on Atlassian ID ?

 

Thank you in advance.

12 answers

2 accepted

14 votes
Answer accepted

For those struggling with Git, Bitbucket and Windows authentication, try installing the latest Windows Git Credential Manager: https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases

This fixed my issue with login constantly popping up and not taking my credentials.

Like # people like this

This is not solving my problem. I have installed SourceTree on 3 computers. l have 2FA active and on 2 computers I am using "app passwords" they worked very well until now. 

On the 3rd computer I am trying to do the same thing. I already installed Git Credential Manager for Windows but nothing improved. Are you sure you don't have a bug on the servers? 

I don't know why login worked before and now it is not working.

Thank you, this worked for me.

Thanks works for me

Thanks a lot man, Worked for me as well.

worked for me. Used the default username and not the email

1 vote
Answer accepted

Hi Naëm,

Since one of the steps of the upgrade process was to input your Atlassian account password, you should now have a password set (in addition to being able to use Google). You should be able to use your Bitbucket username and Atlassian account password to authenticate SourceTree.

If you need to reset your Atlassian account password, you can do so here: https://id.atlassian.com/login/resetpassword

Thanks,

Alastair

Same issue. Can connect to bitbucket web but not with the source tree with the same credentials.

Have same issue. Driving me nuts.

Like Alexis_Guay likes this

Did either of you manage to resolve this issue? I have been having the same issue.

yes, me too , windows 7 professional 32 bit , sourcetree 2.7g , can login web , bitbucket and also atlassian account , but cannot login using sourcetree , even have gone to set the IE and make security to the lowest for all zones , any one found solutions ?

Rather use the previous version, which was working flawlessly.

I got it to work. I completely closed Git and SourceTree. I then when into Bitbucket as if to checkout my code. Instead of cloning in SourceTree, I used the Git command it suggested from the Terminal in SourceTree. It asked for my password and took it when I did this.

Like # people like this

Hi , after so many tries ... until almost tempted to scream , finally , i check my internet explorer , it is ancient version 9 , i updated to version 11 and bingo ... everything work fine now .... have been a while since i CARE about the IE ! haha ... hope this help for those who are having problem signing in , in your windows 7 professional.

Yeah, just did another install on my second computer and it doesn't accept my login details, It seems like the issue is Sourcetree. I also have no issue logging into the website. Guess Ill have to use github desktop, sheesh. These apps are meant to make our work faster, this just wasted half a day of my time. Windows 10 here.

Not too mention the bad instructions on how to setup sourcetree, I just had to guess what to do, instructions are no help. I managed to get it to work out of pure luck lol.

I am having this problem now and it's so frustrating

Hi Alexandra,

have you gone through the various suggestions on this page? I (and many colleagues) had the same problem and we resolved it with the following:

As at 13 Aug 2018 a recent update to Windows Git Credential Manager has resulted in a conflict, preventing you from successfully logging on to Bitbucket from Sourcetree (you will constantly be hit with popups asking for your login details and ultimately, the push/pull etc failing). This was resolved in this release of Windows Git Credential Manager. Simply follow the onscreen instructions, download and run the exe. Everything should work fine afterwards.

Like Alfredo Mancilla likes this

This worked, thank you.

The same. It's ridiculous. I can authorize via git's command line, but sourcetreeapp stopped working. Windows 10 and Windows 7 on other PC. 

I'm having the same issue now.  I'm prompted for password every time SourceTree attempts to talk with BitBucket.  Even after I fill in the username and password, SourceTree says it has an empty password.  Using git commands I'm able to log in.  I'm also able to log into BitBucket and other Atlassian sites with the same account.

2018-08-07_9-27-14.png

2018-08-07_9-26-44.png

I'm having the same problem. Using the terminal seems to circumvent it though.

I'm having the same issue. Sourcetree won't accept my login information anymore.

I tried switching to SSH and it didn't fix this either, so I'm thinking SourceTree is confused about some cached account information.  (which means: https://stackoverflow.com/questions/36467893/sourcetree-installation-atlassian-login-stuck/46669458?noredirect=1#comment82510007_46669458 might solve this too)

Personally I uninstalled (and deleted the LocalData SourceTree Folder) and then reinstalled and that seems to have solved this for me.  That said, I'm still using SSH so that could also be part of the fix.  

Mike Corsaro Atlassian Team Aug 07, 2018

Hello! This issue is most likely being caused by an issue in the Git Credential Manager. There's currently a pull-request in review to solve this.

 

https://github.com/Microsoft/Git-Credential-Manager-for-Windows/pull/706

I'm having the same issue.  When the pull-Request gets merged, what do we need to do to make it work again?

Mike Corsaro Atlassian Team Aug 07, 2018

You'll have to download and install the new release of the Git Credential Manager. As a work-around you can also try the following:

  • Remove all "Bitbucket" credentials in the Windows Credential Manager (under Windows Credentials)
  • Switch your URL for your repository to use the SSH url (open the repo, hit "settings", double click on the 'origin' and replace with the SSH url from Bitbucket)
  • Finally, add a new SSH key to Sourcetree and Bitbucket

SSH doesn't require a password prompt or username, so it won't have any of these issues.

@Mike Corsaro, installing the most recent GCM for Windows worked for me.

I got mine to work by removing my username from the remote in each repo and then adding an account in Soucetree that used OATH and setting it to the default.

i am having the same problem

Hi André,

have you gone through the above suggestions? I (and many colleagues) had the same problem and we resolved it with the following:

As at 13 Aug 2018 a recent update to Windows Git Credential Manager has resulted in a conflict, preventing you from successfully logging on to Bitbucket from Sourcetree (you will constantly be hit with popups asking for your login details and ultimately, the push/pull etc failing). This was resolved in this release of Windows Git Credential Manager. Simply follow the onscreen instructions, download and run the exe. Everything should work fine afterwards.

Hi, I am having the same problem on MacOS. My username is the same for both GitHub and Bitbucket.

I was re-prompted to login for months.

This is how I fixed it under Windows:

  1. Close all open tabs in SourceTree.
  2. Remove all Accounts under Tools -> Options -> Authentication.
  3. Close SourceTree.
  4. Open Windows own "Credential Manager".
  5. Click "Windows Credentials".
  6. Remove all git or SourceTree related credentials (everything starting with "git:" or something similar to "source-tree-rest:" (don't have this one anymore to look it up)).
  7. Start SourceTree and reenter the correct passwords of your accounts when prompted. This should be the last prompts you will see.
  8. You might have to edit your repository settings to edit and save it's remotes.

Beware, that SourceTree is going to prompt you to login one time for every repository (not account) it knows about (not just open tabs), when it feels like checking for changes for the first time after you completed the above steps and you have to login every time providing your password.

Only after that, SourceTree will finally stay quiet again.

Mac OSX 10.13.3 same issue - am entering correct Bitbucket server base url, username and password and am getting Login failed all the time... what a waste of time... I have SSH private key added to my key manager.

I just downloaded the latest SourceTree (funny - it doesn't even allow you to look up version before authentication - what a nonsense!). Have an older version on another machine and it's still working. Wasting more and more time with Atlassian products = starting to decrease my productivity significantly.

I have a similar problem, can't login to Bitbucket Cloud from SourceTree because it won't accept my Bitbucket username and my Atlassian ID password.

I had another Bitbucket account that this was effecting, and I got it working by using the old Bitbucket password.

That's not possible for a new account now, you have to sign up with the Atlassian ID.

It is not possible to enter your Atlassian ID info into SourceTree, it specifically will not let you use an email address for a username.

How is this not a bigger problem for people?

Hi Michael,

I'm sorry you're experiencing issues authenticating in SourceTree. The behavior you're describing is strange! Are you able to log into Bitbucket Cloud using that password? If yes, but it's not working in SourceTree, can you send an email to support@bitbucket.org so we can investigate?

Thank you!

Alastair

I am experiencing the same issue. Is there any known fix for this?

To be clear: I am able to login on Bitbucket Cloud using my password but not in Sourcetree. I even tried changing the password and that did not work in Sourcetree, but again I could login with the new password on BitBucket Cloud. I double checked the username and it is correct. no Idea what is going on...

Also, i am having the same issue, any body can help us

Longtime but no answer about this error. I have same issue now, and don't know how to fix it.

I can login to bitbucket cloud with that account as normally.
But both sourceTree and git terminal request credentials when I try to clon repository.

I am facing same issue as well , any solution ?

having exact same issue, I can log into bitbucket and atlassian but not sourcetree with the same login info.

Same here.  OSX El Capitan

Same issue. I can login to Bitbucket, but when i`m installing Sourcetree, my credentials cannot be validated. Maybe we all should switch to Github...

0 votes
Mike Corsaro Atlassian Team Aug 02, 2018

Hello! If you're having issues logging into Bitbucket Cloud on Sourcetree for Windows, please try and use the "OAuth" option for login:

oauth.PNG

 

If you're having issues with logging into Sourcetree for the first time with your Atlassian Account (not Bitbucket Server), then it's probably an issue with your IE11 settings. You can find help in this post.

 

Note: the next release of Sourcetree will allow you to login via Bitbucket Cloud directly to help solve most of these issues.

this dont works for me: 

fatal: HttpRequestException encountered.
An error occurred while sending the request.

remote: Invalid username or password

After it sourcetree try to open login on bitbucket. 

Sourcetree on Mac OS 10.13.6 does not work.

 

It is stuck on an endless loop. Trying to get password. 

 

The UI is unintuitive and sucks. Git is free by Linus.... **1** guy. All you have to do is write is write a GUI client.

I just switched to Eclipse with eGit plugin. Its beautiful. To look at git history representation and also ease of use.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder

...ipe.sh :  #!/bin/bash source "$(dirname "$0")/common.sh" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

4,085 views 4 22
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