'App passwords for git authentication(bitbucket and sourcetree)

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.



Solution 1:[1]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Muhammad Abu ul Fazal