Bitbucket fails to authenticate on git pull

后端 未结 16 1245
无人共我
无人共我 2020-12-12 11:40

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

git pull

remote: Invalid username or password. If

相关标签:
16条回答
  • 2020-12-12 12:24

    For me the issue was I changed my username so the git url also got changed. So I had to set the new git url using

    git remote set-url origin <URL>
    
    0 讨论(0)
  • 2020-12-12 12:25

    If you are a mac user this worked for me:

    1. open Keychain Access.
    2. Search for Bitbucket accounts.
    3. Delete them.

    Then it will ask you for the password again.

    0 讨论(0)
  • 2020-12-12 12:29

    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 :)

    0 讨论(0)
  • 2020-12-12 12:30

    First, edit your .git/config and remove your username from 'url'.

    I had this:

    url = https://username@bitbucket.org/pathto/myrepo.git
    

    And after modification:

    url = https://bitbucket.org/pathto/myrepo.git
    

    Then try to pull (or push) and use your email and password credentials to login.

    0 讨论(0)
提交回复
热议问题