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

macOS: Fatal error: Commit using App Password in SourceTree does not work


After trying various posted solutions my App Password is still being rejected by Sourcetree when trying to commit/push/pull to/from Bitbucket and I get this famous error:

fatal: Authentication failed for ''

I have set up the App Password through the Bitbucket personal settings site and entering the password in the Sourcetree preferences seems to accept the password, because I can exit the window without any error message.
The account is set to Auth Type: Basic and Protocol to HTTPS

I have also removed various SourceTree preference files from
~/Library/Application Support/Sourcetree
I also deleted all Sourcetree and Bitbucket items from the macOS Keychain.

After removal of these files and restarting Sourcetree I have to add a new account (of course because the files have been deleted) and entering all account data as before. Again, Sourcetree seems to accept the entered App Password.
Then, while trying to push/pull I am asked for the Bitbucket account password. I tried both the account password as well as the App Password but both result in the same fatal error during commit.

I have also tried to set up a SSH key but this also doesn't make a difference.

All solutions provided here:

Unable to commit using App Password in SourceTree

and here:

App password SourceTree

don't work and are also mostly for Windows users anyway.

Any help is greatly appreciated.

0 answers

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