Skip to content

Setup App Password for Git in BitBucket

Bitbucket now does not support basic authentication, using username and password, in git pull or push requests.

If, for any reason, you are trying to push your changes on BitBucket remote repository with basic authentication, then you may get below error:

Logon failed, use ctrl+c to cancel basic credential prompt.
remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication.
remote: See our community post for more details:
remote: App passwords are recommended for most use cases and can be created in your Personal settings:
fatal: Authentication failed for ‘https://<YourUsername><name>/<project>.git/’

It clearly says, that Bitbucket doesn’t support traditional username and password for git authentication, and users must use App passwords. So, here I will show you how you can generate app passwords easily.

Step 1: Go to your BitBucket settings page. You can do so by clicking on user avatar and then select Personal Setting.

Bitbucket Personal setting link
Click on Personal Settings Link

Step 2: Now on settings screen, on left pane, click on app passwords.

Bitbucket personal setting page and link for App Password
Click on App Password Link

Step 3: Then on App Passwords screen, click on create app password button.

Bitbucket App password initial screen
Click on Create app password button

Bitbucket App password initial screen
Add value for Label and select permissions

Step 4: Now on new screen, give it a new label and select appropriate permissions. And then click on Create.

Bitbucket App password screen give permission
Add appropriate permissions and click on create button

Step 5: A new app password will be generated. As this password will shown to you only once, its better to save it temporarily on secured location.

Bitbucket App passowrd
Copy the app password (I hide it here for security purpose)

Now your App password is generated. Now you can use it for git operations. For example, now if you try to clone a project, you can simply use this app password instead of earlier account password.

Also, you can save it in the credential manager for you git account.

Be First to Comment

Leave a Reply

Your email address will not be published.