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

Sourcetree keeps asking for wrong account password

So i had to change the primary account i use for bitbucket because of this issue


But now sourcetree keeps asking my for the password of my old account when ever i try to do anything with my git repo hosted on bitbucket. If i go to Tools > Options > Authentication. i see the correct new account only. (at first i wasn't able to delete my old account from here but i found out that you can remove it from the Windows Credentials Manager). Also i wasn't able to use basic auth due to this bug
So i had to use oauth for the new account. 

But now it keeps prompting me to enter the password of my old account. How can i fix this?

2 answers

1 accepted

0 votes
Answer accepted
minnsey Atlassian Team Feb 22, 2018


Can you check the remote URLs you are using for your repositories, do they contain the old username?

If do you will need to replace them to use URLs with your new username.

Thanks, that was it. I didn't think to check for that. 

I have the same problem. I only have 1 project opened in sourcetree. The url is fine. Still it complains about an account I used months ago.

I have the same problem.  The url is fine too.

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,261 views 5 14
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