3

我最近开始使用 GitHub,但出于某种原因,每次我尝试拉取或推送它时都会询问我的凭据。我 100% 确定我的凭据正确,但 git bash 不断给出此错误:

fatal: Win32Exception encountered.
       Failed to write credentials

我不知道为什么,但每次我重新安装 git bash 直到我下次重新启动时它都会起作用。

请询问您可能需要的任何信息,因为我对 git 仍然很陌生。

4

1 回答 1

3

检查您是否设置了凭证助手git config -l|grep credential

在 Windows 上,您应该确保您拥有:

git config --global credential.helper manager

对于最近的Git for Windows,它确实使用了Microsoft Git Credential Manager,链接到Windows 中的 Credential Manager

于 2017-04-24T04:51:55.327 回答