'How to access bitbucket repository in Sublime Merge using App Password [duplicate]
Some time ago I was working on a Bitbucket repository using Sublime Merge. After performing a PUSH for the first time I had to enter my password for https://<my_bitbucket_username>@bitbucket.org. But after March 1, 2022 Bitbucket Cloud stopped supporting account passwords for Git authentication. So when I tried to perform a PUSH recently I got the following error message:
fatal: Invalid credentials remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication. [...] fatal: Authentication failed for 'https://bitbucket.org/<my_bitbucket_username>/<my_repository_name>.git/'
What should I do to regain the ability of performing PUSH operations in Sublime Merge.
Solution 1:[1]
In Web Browser login to your bitbucket account - after that you should land at the following address: https://bitbucket.org/<user_name>/
Now open the following address: https://bitbucket.org/account/settings/app-passwords/
Click 'Create app password' button.
Type some label for the new App Password and select the following Permissions: Repositories -> Read, Write, Admin
Click Create
Copy the created App Password and paste it somewhere not to lose it.
Now go to your repository in Sublime Merge.
- In Sublime Merge at the left side there are three tabs/columns: Locations, Commits, Files.
- Open the tab/column named 'Locations'.
- Click 'REMOTES (..)' to unfold REMOTES branch.
- You should see the 'origin' sub-branch now.
- Right-click the 'origin' branch and from the popup menu select Update Remote URL.
You will see your previous Remote URL.
- Now modify your Remote URL as follows:
https://<your_user_name>:<app_password>@bitbucket.org/<your_user_name>/<repository_name>.git
- Click ENTER
Now you can click PUSH to perform the PUSH operation.
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 | promeek |
