Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

How do I clone a Bitbucket repository using Sourcetree?

I'm using Sourcetree for Windows 2.6.10. I connected Sourcetree to my Bitbucket account via OAuth. The connection is made and I can see my repositories. However, when I try to clone one, I get the following error:

Command: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks ls-remote
Error: fatal: TaskCanceledException encountered.
A task was canceled.
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 ''

 Might this have something to do with the fact that I now need to log into Bitbucket with my email instead of my username? It may be coincidental, but Sourcetree lost the ability to communicate with my Bitbucket repositories the same day that the Bitbucket web page told me I could no longer log in with a username.

1 answer

1 accepted

0 votes
Answer accepted

I managed to fix the problem. A complete uninstall of Sourcetree (via the directions here: and reinstallation worked.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

7,122 views 5 13
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