Git credential helper - update password

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

    None of the current solutions worked for me with git bash 2.26.2. This should work in any case if you are using the windows credential manager.

    One issue is the windows credential manager runs for the logged user. In my case for example, I run git bash with right click, run as admin. Therefore, my stored credentials are in a credentials manager which I can't access with the windows GUI if I don't login to windows as admin.

    To fix this:

    • Open a cmd as admin (or whatever user you run with bash with)
    • Go to windows/system32
    • Type cmdkey /list. Your old credentials should appear here, with a part that reads ...target:xxx...
    • Type cmdkey /delete:xxx, where xxx is the target from the previous line

    It should confirm you that your credentials have been removed. Next time you do any operation in git bash that requires authentication, a popup will ask for your credentials.

提交回复
热议问题