How do I update the password for Git?

后端 未结 26 1898
一整个雨季
一整个雨季 2020-12-02 03:12

I\'m using BitBucket with Xcode and Git for version control, and recently I changed all of my passwords (thanks Adobe!).

Unsurprisingly, I\'m no longer able

相关标签:
26条回答
  • 2020-12-02 03:50

    If above solutions are not working, try to change your remove git url.

    git remote -v

    git remote set-url origin

    0 讨论(0)
  • 2020-12-02 03:51

    I was able to change my git password by going to Credential Manager in Windows and deleting all the git entries under Windows Credentials

    0 讨论(0)
  • 2020-12-02 03:52

    The only way I could modify my git password was to go to Credential Manager in Windows (Windows Key + type 'credential') and edit the git entry under Windows Credentials

    0 讨论(0)
  • 2020-12-02 03:54

    For those who are looking for how to reset access to the repository. By the example of GitHub. You can change your GitHub profile password and revoke all "Personal access tokens" in "Settings -> Developer settings" of your profile. Also you can optionally wipe all your SSH/PGP keys and OAuth/GitHub apps to be sure that access to the repository is completely blocked. Thus, all the credential managers, on any system will fail at authorisation and prompt you to enter the new credentials.

    0 讨论(0)
  • 2020-12-02 03:55

    do these steps in Terminal:

    1. Delete current password saved in your Mac

      git config --global --unset user.password
      
    2. Add your new password by using this command, replace with your new password:

      git config --global --add user.password <new_pass>
      
    0 讨论(0)
  • 2020-12-02 03:56

    If you are MAC user then you can open KeyChain Access Application from finder and then look for your account listed there. Just click on it and update your password. Now give a try and things will fall in place.

    link for reference: Updating your credentials via Keychain Access

    Worked for me. :)

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