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

Authentication Failure


Hi everyone,


I'm trying to checkout a branch (using Clone) from Bitbucket to Sourcetree.

Everytime i do that it asks me the password for git user. Can anyone help of how can i find this detail?

Additionally, i'm getting this error when trying to fetch branch from SourceTree:

remote: Invalid username or password

fatal: Authentication failed for ''

Any help is appreciated.



2 answers

If using the app password, remember to allow read access to the account also, as it is not enough with read/write to the repo itself.


If you're on Windows, clsoe sourcetree, go to your "C:\Users\{USERNAME}\AppData\Local\Atlassian\SourceTree" folder and delete the "passwd" file, then restart it. It will ask your credentials again but you should be OK.

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...

5,824 views 4 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