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 - can't push login problems


I was doing regular commits in Sourcetree and successfully pushing each commit to remote.  Suddently, on an attempt to do a commit, Sourcetree popped up a login box.  I entered my Atlassian credentials but the push to remote in Sourcetree failed with the message "Invalid username or password".

I was puzzled as I hadn't done anything to change my login credentials.  I opened my browser and, using exactly the same credentials, I was able to successfully log into and was also able to successfully log into (and able to see all of my repositories).

I restarted my computer, opened Sourcetree, and again attempted to do the push but got exactly the same error: a login box, followed by a failed login message in Sourcetree.

I then used Git Bash to try to push the commit to origin using the command: git push origin <branchname>.  An Atlassian login box appeared, I entered exactly the same credentials as I had entered into the login box when trying the push from within Sourcetree, and the push succeeded.  To make sure, I opened my browser, logged back into, opened my repository, and the commit was there.

Any ideas on how I can resolve the Sourcetree error, or what else I can do to try to identify the cause of the error?


1 answer

1 accepted

2 votes
Answer accepted

I found the following solution posted by David Keck:

David's solution is to simply delete the file called 'passwd' from:


Then restart Sourcetree.  When you next do something that requires accessing the remote (eg, a push or fetch), Sourcetree will prompt you to login and will recreate the passwd file with your credentials.

David's solution worked for me.  Thank you David.

Thank you this helped me as well

Didn't work.  I'm getting "Logon failed, use ctrl+c to cancel basic credential prompt.  error: unable to read askpass response from ...Askpass.exe"  :-(



Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events