Reputation: 993
I have pushed the code in the morning it was working fine but now I'm trying to push code but getting this error: Bitbucket Cloud recently stopped supporting account passwords for Git authentication
Upvotes: 29
Views: 27048
Reputation: 867
The guidance suppose to be like this:
After that, back to your console and type below
git remote set-url origin https://<BITBUCKET_USERNAME>:<APP_PASSWORD>@bitbucket.org/<WORKSPACE>/<REPO_NAME>.git
Happy Trying!
Upvotes: 1
Reputation: 1930
On Windows after creating password I had do as below to fix my issue:
If this does not work you can try one more thing before reinstalling Sourcetree for Windows.
Navigate to C:\Users<UserName>\AppData\Local\Atlassian\Sourcetree and remove the passwd file. Please be warned, that after removing this file, Sourcetree for Windows may eventually prompt you for your password(s) again. Next, again try and push and/or pull some code to your Bitbucket Cloud repository. If it works then you can ignore the following steps.
Upvotes: 2
Reputation: 1079
This issue is created in new Update. Please do below things.
Then I opened my Bitbucket account.
Then at the bottom left corner you will find an icon with your username's initials.
Click on that and go to settings and click on Personal Settings
In personal Settings, in the left panel you will find "access management"
Under that you will find "app passwords"
Click on that --> Then you will routed to create app password page There you can give the required permissions and create password (Note: You have to store that password somewhere as it will be displayed only once)
When you push the code to any repo...use your app password instead of your account password (No need to change any settings in the git_config file)
Upvotes: 0
Reputation: 611
I've also faced this issue..
Then I opened my Bitbucket account.
Then at the bottom left corner you will find an icon with your username's initials.
Click on that and go to settings and click on Personal Settings
In personal Settings, in the left panel you will find "access management"
Under that you will find "app passwords"
Click on that --> Then you will routed to create app password page
There you can give the required permissions and create password (Note: You have to store that password somewhere as it will be displayed only once)
When you push the code to any repo...use your app password instead of your account password (No need to change any settings in the git_config file)
Happy programming :) !
Upvotes: 50
Reputation: 456
You can also make the update in Sourcetree pretty easily, but you still need to create an app password first.
Create App Password:
The password will only show once, so make sure to copy it as you will need it later.
Update in Sourcetree:
https://{{BitbucketUsername}}:{{AppPassword}}@bitbucket.org/{{RepoName}}.git
Upvotes: 27
Reputation: 179
After creating the app password from bitbucket cloud, I reset remote url like the following.
git remote set-url origin https://<Bitbucket_Username>:<App_Password>@bitbucket.org/<Repo_Name>.git
After resetting the remote url, I couldn't manage to pull push or any other git operation. Got an error message, like remote repository doesn't exits.
To solve this issue, I reset back to the url which was before this. Then run some git command and when the sign in window appears, I put the app password instead of the bitbucket account password and it worked for me.
Upvotes: 8