- 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
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.
git remote set-url origin https://<Bitbucket_Username>:<App_Password>@bitbucket.org/<Repo_Name>.git
git clone https://<Bitbucket_Username>:<App_Password>@bitbucket.org/<Repo_Name>.git