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

remote: Invalid username or password


Hi all,
I am new here and having problem setting up similar for bitbucket. I set up the app password today (using , check that it is authenticated (clipboard1.jpg) but was not able to push my code (clipboard2.jpg). While troubleshooting, I have updated my sourcetree app to the latest 3.4.7 version. Why is there a mismatch in authentication results and attempting to push my code to bitbucket? Hope you can provide some clues on what to check next.

FYI, I just finish setting up a PAT for git successfully on sourcetree and able to push my code updates.

FYI, I search the community for some ideas as in this post and had put in my comment/questions - this question is created as per request by community leader : )

nbinnajibclipboard2 - bitbucket error.jpgclipboard1 - bitbucket authenticated.jpg

1 answer

0 votes
Syahrul Atlassian Team Jan 05, 2022

Hi @nbinnajib 


Can you navigate to Windows credentials manager and search for Bitbucket, then delete all the entries in it? I suspect Sourcetree is using the old/wrong password store in the credentials manager hence you are getting an invalid password id/password error.

Once deleted, re-authenticate again and do a git pull. It should trigger a new password popup or if not then it's now authenticating using your latest credentials.

Let me know how it goes


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

79,220 views 135 29
Read article

Atlassian Community Events