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

Sourctree In Endless Authentication Loop When Connecting To BitBucket

I have the latest version for Sourcetree (  Every time I try to push to a repository, Soucetree continually pops up the "Bitbucket Login" form.  When I enter the username/password, the system eventually throws the following error:

remote: Invalid username or password
fatal: Authentication failed for ''

The username/password is most assuredly correct.  I am not sure why Sourcetree/Bitbucket is having trouble with the connection.


1 answer

I've encountered this too, and I thought I had it beat in the past by refreshing my OAuth token.  

But I was recently trying to set up coworker, the same procedure does not work.  

On an Azure VM, authenticating against a Microsoft account.  The refresh is successful, but sourcetree and command line still fail.  

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

61,383 views 127 27
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