git 从 TortoiseGit 中删除保存的凭据

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/31782090/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 03:25:33  来源:igfitidea点击:

Remove saved credentials from TortoiseGit

gitcredentialstortoisegit

提问by Gidil

My credentials are saved in TortoiseGit (using Wincred) but my password changed.
The only way for me to pull from the repository now is to remove the Credential Helper.

我的凭据保存在 TortoiseGit(使用 Wincred)中,但我的密码已更改。
我现在从存储库中提取的唯一方法是删除 Credential Helper。

How can I simply change the password?
Alternately, can I remove my credentials and save my new ones?

我怎样才能简单地更改密码?
或者,我可以删除我的凭据并保存我的新凭据吗?

回答by MrTux

Normally the invalid credentials should be purged automatically (after one unsuccessful authentication attempt).

通常应自动清除无效凭据(在一次身份验证尝试失败后)。

Go to Control Panel\User Accounts and Family Safety\Credential Manager(another way to get there is to Start->Run rundll32.exe keymgr.dll,KRShowKeyMgr), there all saved credentials should be listed (prefixed with git:).

转到Control Panel\User Accounts and Family Safety\Credential Manager(到达那里的另一种方法是 Start->Run rundll32.exe keymgr.dll,KRShowKeyMgr),应列出所有保存的凭据(以 为前缀git:)。

For ways to also remove saved credentials on other OS, see https://stackoverflow.com/a/39944557/3906760.

有关在其他操作系统上删除已保存凭据的方法,请参阅https://stackoverflow.com/a/39944557/3906760

回答by Stephane Desmarais

I changed my Windows password and now GIT would fail with authentication error, and even doing 2 pull in a row with git pull -vwould not prompt for the new password.

我更改了我的 Windows 密码,现在 GIT 会因身份验证错误而失败,即使连续执行 2 次拉取git pull -v也不会提示输入新密码。

It was really hard to find the Windows credential manager since not only do I have Windows 10, but also it's a French language version.

很难找到 Windows 凭据管理器,因为我不仅拥有 Windows 10,而且它是法语版本。

I finally found on this pageI could access it by using:

我终于在这个页面上发现我可以使用以下方法访问它:

rundll32.exe keymgr.dll,KRShowKeyMgr

and I double-clicked on the git:http:line to enter the right password and I was then able to pull and push to the repository.

我双击该git:http:行以输入正确的密码,然后我就可以拉取并推送到存储库。

I hope this helps someone else.

我希望这对其他人有帮助。

I'd still like to understand why it's not asking me for the new password anymore - it used to ask for it the first 2 months after I got my Windows 10 PC (I change password every month)

我仍然想了解为什么它不再要求我输入新密码 - 它曾经在我获得 Windows 10 PC 后的前 2 个月要求它(我每个月更改密码)