Git credential helper - update password

前端 未结 10 1443
遥遥无期
遥遥无期 2020-12-07 08:21

I\'m currently using GitHub over HTTPS and have the latest version of Git installed (1.9.0) along with the Git credential helper on Windows 7.

On setting up my envir

相关标签:
10条回答
  • 2020-12-07 09:26

    Working solution for Windows:

    Control Panel > User Accounts > Credential Manager > Generic Credentials

    0 讨论(0)
  • 2020-12-07 09:27

    On my first attempt to Git fetch after my password change, I was told that my username/password combination was invalid. This was correct as git-credential helper had cached my old values.

    However, I attempted another git fetch after restarting my terminal/command-prompt and this time the credential helper prompted me to enter in my GitHub username and password.

    I suspect the initial failed Git fetch request in combination with restarting my terminal/command-prompt resolved this for me.

    I hope this answer helps anybody else in a similar position in the future!

    0 讨论(0)
  • 2020-12-07 09:27

    If you are a Windows user, you may either remove or update your credentials in Credential Manager.

    In Windows 10, go to the below path:

    Control PanelAll Control Panel ItemsCredential Manager

    Or search for "credential manager" in your "Search Windows" section in the Start menu.

    Then from the Credential Manager, select "Windows Credentials".

    Credential Manager will show many items including your outlook and GitHub repository under "Generic credentials"

    You click on the drop down arrow on the right side of your Git: and it will show options to edit and remove. If you remove, the credential popup will come next time when you fetch or pull. Or you can directly edit the credentials there.

    0 讨论(0)
  • 2020-12-07 09:28

    First find the version you are using with the Git command git --version. If you have a newer version than 1.7.10, then simply use this command:

    git config --global credential.helper wincred
    

    Then do the git fetch , then it prompts for the password update.

    Now, it won't prompt for the password for multiple times in Git.

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