Skip to content

Instantly share code, notes, and snippets.

@fecoderchinh
Created July 1, 2022 06:18
Show Gist options
  • Save fecoderchinh/8fb406ee13d99db878ea44c2a83512b0 to your computer and use it in GitHub Desktop.
Save fecoderchinh/8fb406ee13d99db878ea44c2a83512b0 to your computer and use it in GitHub Desktop.
How to fix remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication error?

The original reference

Step 1: Create an App Password in BitBucket

  1. Go to the bitbucket.org website and log in with your account credentials
  2. From your avatar in the bottom left, click Personal settings
  3. Click App passwords under Access management
  4. Click Create App password
  5. Give the app password sufficient rights and a label related to the application that will use the password
  6. Don’t forget to save that password

Step 2: Modify the BitBucket Repository Origin URL

After creating the App password, come to the terminal and update the BitBucket repository origin URL to use App passwords instead of the Account password, as shown below.

In the case of Existing Repo

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

In the case of New Repo

git clone https://<Bitbucket_Username>:<App_Password>@bitbucket.org/<Repo_Name>.git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment