2

When I tried to push,sourcetree shows below error.

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push -v --tags ruling master:master
remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication.
remote: See our community post for more details: https://atlassian.community/t5/x/x/ba-p/1948231
remote: App passwords are recommended for most use cases and can be created in your Personal settings:
remote: https://bitbucket.org/account/settings/app-passwords/
fatal: Authentication failed for 'https://bitbucket.org/xxxxxxx/ruling.git/'

So I went to https://bitbucket.org/account/settings/app-passwords/ Created app password, added Password Lable, and Select Permissions.

But still, push does not work and the same error message appears.

After that, I don't know what to do. Please advise me what should I do next.

1 Answers1

2

On Windows, Navigate to

C:\Users\<UserName>\AppData\Local\Atlassian\Sourcetree and remove the passwd file.

  • Please be warned, that after removing this file, Sourcetree for Windows may eventually prompt you for your password(s) again.

There are two more potential solutions mentioned on the following link, but for me the above worked:

https://community.atlassian.com/t5/Sourcetree-articles/Bug-Fix-Sourcetree-for-Windows-authentication-error-when/ba-p/1965968

  • Thank you; I tried reinstalling Sourcetree, but that didnt work, and removing the accounts from within Sourcetree didnt work either as suggested here https://community.atlassian.com/t5/Sourcetree-articles/Bug-Fix-Sourcetree-for-Windows-authentication-error-when/ba-p/1965968; however manually removing the passwd file did the trick – pdbentley Jun 02 '22 at 03:32