Git credential helper - update password

前端 未结 10 1478
遥遥无期
遥遥无期 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:06

    It seems to me that the answers here are outdated. For me under Windows 10 and Git 2.15.0 this did the job:

    git credential reject
    protocol=https
    host=github.com
    
    

    And then to set the new username & password:

    git credential fill
    protocol=https
    host=github.com
    
    

    After this, if the credentials now work on the desired target host, we should use git credential approve -as mentioned in typical use of Git credentials (step 4)- to tell the credential helpers to mark the credentials as approved and reuse them in future connections.

提交回复
热议问题