Search code examples
gitbitbucketatlassian-sourcetree

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

  • 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