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

Authentication Problems

I am quite new about Sourcetree and bitbucket so perhaps my problemis "stupid", in any way when I try to push somthing from sourcetree to bitbucket I have the following error:

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push -v --tags origin master:master
remote: Invalid username or password
fatal: Authentication failed for ''

Pushing to
Completed with errors, see above.


even if opening the tab Authentication in Tools >> Optionts I have Authentication Ok corrisdponding to my userid, clicking the button Remote, I can access to bitbucket repository (of course I was able to clone the repository from bitbucket to sourcetree)

If someone can help me, it would be very appreciate

Thank you


1 answer

Hi Tiziano, I have the same problem.. Instead if Bitbucket, I use GitHub.

If I go to Authentication page, I can see "Authentication OK" and there is my correct username, but when I try to clone a repository from GitHub, I have this:

Error: remote: invalid username or password

fatal: Authentication failed for xxxxxxx


Please someone can help me? 

Thank you very much


Suggest an answer

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

Bug Fix: Sourcetree for Windows authentication error when updating to app password

Hello Sourcetree users!!! With the recent removal of Bitbucket Cloud account passwords for app passwords (please see our Bitbucket Cloud community post for details on why we made this change for se...

78,669 views 134 29
Read article

Atlassian Community Events