Login from SourceTree validates email/password but then says must use username

When I use my email address (registered on bitbucket) to authenticate from SourcTree the Hosted Account List "Edit Hosting Account" screen shows my password as correct (Login status: Password OK), however, when I press OK a pop-up tells me I need to "enter my Bitbucket/GitHub username and not an email address."

If I use the username then authentication fails.  I see no place on bitbucket.org where I can specify a username.



6 answers

1 accepted

3 votes
Accepted answer

Same issue for me. Sourcetree's still not able to handle the change to email ID's used by Atlassian's SSO. The move to SSO is great but it'd be handy if Sourcetree was on board. I was able to get things done by using a non-Atlassian git client like GitKraken.

I just started getting this as well today. Now I cannot use SourceTree to connect to my Bitbucket repos.

The username field only lets me use my email address from my Atlassian account, but bitbucket/github are asking for a username and not an email address.

This is really bogus here, and needs to fixed asap.

Awesome, thanks Bryan!  I'm up and running using GitKraken now.  I like it better than SourceTree so far, well, the fact that it let's me log in is enough really :-\

You're welcome, Kevin. I've logged an issue about this with Atlassian. we'll see.

I was just switched from my Bitbucket user name to my Atlassian account email address, and SourceTree 2.3.2 OSX (latest version) will now not allow me to pull into my cloned hg repos.

Finding how to change the username was not entirely obvious - the cog/settings... option in the repository browser. But it won't allow me to change from username to email address.


Please release a version of SourceTree that fixes this and allows SSO logins.


Thanks, Matt

Ah! I think I have a fix ... in the repository browser, I selected the Remote tab. Sourcetree then prompted me for my username/password, with the username field disabled. I entered the password of my Atlassian account email address (which is of course, different to my username's password).


I was then able to successfully push/pull to a Bitbucket mercurial repository.

So it seems that my Atlassian account password now works with my Bitbucket user name. This wasn't what I was expecting... I thought that my username/username-password would be no more, and I'd have to use the Atlassian account email address and its password.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

216 views 3 7
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