Can't change username and password from git

故事扮演 提交于 2019-11-28 05:47:45

问题


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;

  1. Remove the git credential on Windows Credentials.
  2. Find the .gitconfig file in (c:/Users/[YourAccount] folder)
  3. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!