$ git config --get credential.helper
显示的是 osxkeychain
?这只适用于 OS X。.gitconfig
文件(可能在 $HOME 中),并删除凭据助手行。WinCred
存储凭据。运行以下命令将Git设置为使用Windows凭据管理器:git config --global credential.helper wincred
git fetch 或者 pull
,然后它应该会再次提示你输入凭证并将其存储在凭证管理器中。尝试将您的Git实例切换到Apple Git。这对我有用。
[credential] helper = osxkeychain
这一行。 - iltempo