Bitbucket is our Git repository management solution designed for professional teams. It gives you a central place to manage git repositories, collaborate on your source code and guide you through the development flow. It provides awesome features that include:
- Acces control to restrict access to your source code.
- Workflow control to enforce a project or team workflow.
- Pull requests with in-line commenting for collaboration on code review.
- Jira integration for full development traceability.
- Full Rest API to build features custom to your workflow if they are not already available from our Marketplace
Bitbucket Cloud recently stopped supporting account passwords for Git authentication
Starting from March 1, 2022, Bitbucket Cloud users will no longer be able to use their account passwords when using Basic authentication for Git over HTTPS and the Bitbucket Cloud REST API. If you try to use an account password for Git operations, you will get an error remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication. The Github also had moved away from Account password to Personal Access token last year and now it’s Bitbucket turn.
So, In this article, we are going to learn how to solve this problem.
- Go to the bitbucket.org website and log in with your account credentials.
- From your avatar in the bottom left, click Personal settings.
- Click App passwords under Access management
- Click Create App password
- Give the app password sufficient rights and a label related to the application that will use the password
- Don’t forget to save that password
- Now to use this on your previous repository do this:
git remote set-url origin https://<your_bitbucket_username>:<your_app_password>@bitbucket.org/<repository_name>.git
- For the new repository use this:
git clone https://<your_bitbucket_username>:<your_app_password>@bitbucket.org/<repo_name>.git
Hope this solves your error. If you need any more help or if you have any more questions you can comment below.