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

Cannot push (only push) to Bitbucket repositories with SourceTree


I can access all repos in the browser without any issue. But not in SourceTree.

I tried enabling and disabling two-step verification and nothing worked.

With two-step enabled I tried using app password and that did not work either. 

The SourceTree client says that the account is authenticated, but when I try to push it fails.

The error I get when pushing among other info tells me:

"remote: Invalid username or password. If your organization manages your account or you've enabled two-step verification, create an app password to log in:"

In Tools/Options/Authentication for my Bitbucket account I tried HTTPS and SSH protocols, and both types of authentication with regular and the app password as instructed in error message. The checkbox Authentication OK is checked.

This, SourceTree failing to push to Bitbucket started about a month ago without any changes on my part to configuration or account settings. It worked fine before.  

Another, and probably related issue is the SourceTree keeps popping Bitbucket login incessantly. Sometimes prepopulated with my user name, sometimes both, user name and password fields blank. Super annoying. It keeps popping event after I provide my credentials.

Additionally, as odd as it is, if I updated repository outside of SourceTree it is reflected in the client!

Any help is appreciated.

1 answer

0 votes
minnsey Atlassian Team Aug 22, 2018


There has been a bug in the Git Credential Manager for Windows GCMW that effected Bitbucket logins, it is worth updating to v 1.17.1 or higher.

Additionally it is possible to lock access to Git and/or REST functionality due to excessive failed logins., It is worth logging out/in again to to reset those locks.

That was it! Thank you Michael!

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,045 views 5 13
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