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 will not Authenticate correctly with BitBucket

When I try to pull or push any repository from SourceTree (v3.1.1) to BitBucket I am getting failure due to "incorrect username or password"

I use "Global Authentication" for my Repositories and when I go into Authentication settings in SourceTree and "Refresh" password I get the green tick and all is good.

Can you please help.

1 answer

0 votes
Ana Retamal Atlassian Team Mar 19, 2019

Hi Keith,

Are you pushing to the right account? Can you double check that the credentials are correct by trying to log in to Bitbucket via the browser?

Alternatively, you can try pushing the changes from the command line and see if the credentials work or if you get any error message. If it works, that would mean Sourcetree is storing wrong credentials somewhere, in this case you could try wiping Sourcetree preferences.

I'd also suggest having a look at the Sourcetree logs in case there's any additional information there. 

Let us know how it goes!



I actually have resolved this now. I was/am pushing to the correct account.

This issue was that I needed to do an update on the GIT Embedded. Once I did this it resolved my issue.

Thanks for your reply.


Ana Retamal Atlassian Team Mar 20, 2019

Glad you could solve it, Keith.

Have a good day!


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

60,388 views 127 26
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