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

Changed my Bitbucket password now Sourcetree cannot pull from remote.



I recently changed my password on Bitbucket and I have attempted to re-authenticate using OAuth. However, I am unable to pull from origin.

What I have Tried

  • Refreshing OAuth Token in the authentication settings
  • Completely removing the Bitbucket account in the authentication settings then re adding it
  • Logged out of all Atlassian/Bitbucket sessions the tried refreshing the OAuth token. 
    • This caused me to have to log back in which I was able to do.
  • Went to windows credentials manager and removed any Bitbucket and Sourcetree credentials.

After trying all of the above steps Sourcetree is saying that the Authentication is ok with a green tick but unfortunately when I try to push or pull from the remote I recieve an error saying the following.

remote: Invalid username or password
fatal: Authentication failed for 'https://<my username>'




If it helps I am using SourceTree version

1 answer

1 accepted

0 votes
Answer accepted

Hi to solve this I was able to log in to Bitbucket through visual studio's Bitbucket extension (If you don't have this install it using visual studios 'Tools > Extensions and updates' then search for Bitbucket extension.

What I had to do was attempt to clone the remote repository in Bitbucket then I was prompted to enter in my login details. Then after logging in I was able to go to Sourcetree and push/pull from the remote.

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,274 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