问题
I use git extension. I wanted the password and username to be store in cache so I used: git-credential-winstore. It worked fine until I had to change the password in my computer (win7) and it asked me again to insert password. I inserted a wrong password and it stores in the cache and I can't change it. I tried to uninstall git and no use. I deleted from .gitconfig file in user\myUser the lines:
[credential]
helper = !'C:\\Users\\grin_d\\AppData\\Roaming\\GitCredStore\\git-credential-winstore.exe'
The result was that I had to insert again every time the password and username. When I run again: git-credential-winstore it shows me again the wrong password.
Any idea how can I delete the wrong password stored in the cache?
回答1:
Check the control panel / User Accounts and Family Safety / User Accounts, or directly the Credential Manager:
(Image from "Credential Manager - Where Windows Stores Passwords & Login Details")
You should be able to delete the faulty credential there.
回答2:
I use http://[yourgitserverip]/Bonobo.Git.Server/Repository/[repositoryname] to change my password. Then;
- Remove the git credential on Windows Credentials.
- Find the .gitconfig file in (c:/Users/[YourAccount] folder)
Add this line (if does not exist):
[credential] helper = !\"C:/Program Files (x86)/GitExtensions/GitCredentialWinStore/git-credential-winstore.exe\"
来源:https://stackoverflow.com/questions/33063296/cant-change-username-and-password-from-git