Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bitbucket fails to authenticate on git pull

Tags:

git

bitbucket

I use BitBucket and had to change my password because it was compromised.

git pull 

remote: Invalid username or password. If you log in via a third party service you must ensure you have an account password set in your account profile.
fatal: Authentication failed for 'https://bitbucket.org/myusername/myproject.git/'

How can I change my password using command line?

like image 492
software is fun Avatar asked Oct 29 '15 12:10

software is fun


2 Answers

You need to reset the password as shown below.

On macOS:

git config --global credential.helper osxkeychain 

On Windows 10/11:

git config --global credential.helper store 

After executing this, it prompts you for the user name and password for your repo.

like image 157
software is fun Avatar answered Oct 12 '22 16:10

software is fun


I think is only an authentication problem...

  1. Click on your Bitbucket account icon (up right) and go to "Manage account".
  2. Go to "Change password" option in left menu.
  3. Enter your password in "New password" and "Confirm password" fields.
  4. Click on "Change password".

That's all :)

like image 42
David Motilla Avatar answered Oct 12 '22 14:10

David Motilla