From 1st March 2022 App Password is required to access your git repository.
1st step is to configure App password in bit-bucket
- Login to your bitbucket account
- Click to your profile and settings option
- then click on app password section
then click on create app password section, you will be prompted to
Add an application name like git and give the permission set for git. It will give you a 16 digit app password. Save it for future use.
Then go to your work directory where you maintain your git. Then refresh your git repo.
git remote set-url origin https://username:<AppPassword>@bitbucket.org/<Your Repo Name>
rest of it is the same as the previous commands are.