Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

SourceTree keeps asking Atlassian username and passwrod and athentication keeps failing


First, I'm using SourceTree on my PC number 1 and it's been working well.

Now I have a second PC, a virtual machine, and I have been using SourceTree for a while. Although SourceTree has frequently asked username and password, it has been working until very recently.

From today, every time I try to pull, the small screen asking for Atlassian username and password appears. Even though I enter correct username and password, it does not work, and the same window keeps appearing.



From "Can't log in?" button, I have updated my password.

This new password is working for Options > Authentication > Accounts > Add for both PC number 1 and 2 (virtual). In both cases, it says "Authentication is OK".

However, now the small window keeps appearing in both PC1 and 2. I enter the username / email and the new password, but ~5 seconds later, the same window appears.

Now I cannot do anything with SourceTree in both machines.

Any suggestions, anybody?


Should I try something like below as suggested somewhere else?


In PC1, Remote URL is set as

but still the same screen and Pulling is failed with an error:

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks -c credential.helper= -c credential.helper="xxxxxxxxxxxxxxxxxxxx/GIT-CR~2.EXE" fetch origin
fatal: HttpRequestException encountered.
   An error occurred while sending the request.
remote: Invalid username or password. If your organization manages your account or you've enabled two-step verification, create an app password to log in:
fatal: Authentication failed for '"
Completed with errors, see above.



Then I thought I can still use command line.

git pull origin master

But the same small screen appeared. When I entered username and password, this error happened.

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

Following that, another small window appeared.


Then I entered the same password again. And finally it seemed to work.

 * branch              master     -> FETCH_HEAD
Already up to date.

But when I tried to Pull from SourceTree GUI again, it failed with the same error as before.


Git version (both PC1 and 2)

Embedded git version 2.17.1/LibGit2Sharp 0.24.0 + git-lfs v2.4.2


SourceTree version (both PC1 and 2)


Windows 10



2 answers

1 accepted

2 votes
Answer accepted
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Aug 09, 2018

Hi Kouichi!

There’s a bug with Windows Git authentication and Bitbucket. The older version of GCM that shipped with Git has a bug with Bitbucket. It seems to be partially fixed in GCM 1.17.0, but 2FA won't be fixed until 1.17.1.
Our developers have submitted fixes to MS and are waiting for them to ship. We are about to start a private beta with a large amount of change and it will end up bundling the fixes as soon as they are available. This has been completely unexpected and our developers are working hard on it to get it fixed as soon as they can.

Thanks for your support!

In SourceTree, with System Git 2.19.0, the problem has been partially solved.

Although still keep asking authentications, I can push from SourceTree GUI now.

Now, SourceTree with System Git 2.19.1, authentication stopped working again.

Also see

Now with SourceTree 3.0.8 for Windows and using System Git version2.19.2, for the first time since August, I succeeded in Pushing from SourceTree GUI.

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events