'Bitbucket Cloud recently stopped supporting account passwords for Git authentication

I have pushed the code in the morning it was working fine but now I'm trying to push code but getting this error: Bitbucket Cloud recently stopped supporting account passwords for Git authentication



Solution 1:[1]

I've also faced this issue..

  1. Then I opened my Bitbucket account.

  2. Then at the bottom left corner you will find an icon with your username's initials.

  3. Click on that and go to settings and click on Personal Settings

  4. In personal Settings, in the left panel you will find "access management"

  5. Under that you will find "app passwords"

  6. Click on that --> Then you will routed to create app password page

  7. There you can give the required permissions and create password (Note: You have to store that password somewhere as it will be displayed only once)

  8. When you push the code to any repo...use your app password instead of your account password (No need to change any settings in the git_config file)

Happy programming :) !

Solution 2:[2]

You can also make the update in Sourcetree pretty easily, but you still need to create an app password first.

Create App Password:

  1. Navigate to: https://bitbucket.org/account/settings/app-passwords/
  2. Create an App Password with the required permissions

The password will only show once, so make sure to copy it as you will need it later.

Update in Sourcetree:

  1. Click the settings button on the top right corner of the repository tab
  2. In Repository Settings -> Remotes: double click the Path for origin.
  3. In Remote Details -> Required Information: edit the URL/Path by adding the app password that was created with your account, the format must be as shown below:

https://{{BitbucketUsername}}:{{AppPassword}}@bitbucket.org/{{RepoName}}.git

Solution 3:[3]

After creating the app password from bitbucket cloud, I reset remote url like the following.

git remote set-url origin https://<Bitbucket_Username>:<App_Password>@bitbucket.org/<Repo_Name>.git

After resetting the remote url, I couldn't manage to pull push or any other git operation. Got an error message, like remote repository doesn't exits.

To solve this issue, I reset back to the url which was before this. Then run some git command and when the sign in window appears, I put the app password instead of the bitbucket account password and it worked for me.

Solution 4:[4]

On Windows after creating password I had to below as below to fix my issue:

If this does not work you can try one more thing before reinstalling Sourcetree for 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. Next, again try and push and/or pull some code to your Bitbucket Cloud repository. If it works then you can ignore the following steps.

Solution 5:[5]

This issue is created in new Update. Please do below things.

  1. Then I opened my Bitbucket account.

  2. Then at the bottom left corner you will find an icon with your username's initials.

  3. Click on that and go to settings and click on Personal Settings

  4. In personal Settings, in the left panel you will find "access management"

  5. Under that you will find "app passwords"

  6. Click on that --> Then you will routed to create app password page There you can give the required permissions and create password (Note: You have to store that password somewhere as it will be displayed only once)

When you push the code to any repo...use your app password instead of your account password (No need to change any settings in the git_config file)

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 stack
Solution 2 Kevin Murphy
Solution 3 ggorlen
Solution 4 Lavakush
Solution 5 Muhammad Wasim Akram