我已经在 Windows 7 64 位中很好地设置了 GitforWindows,并将凭据管理器设置为“Wincred”。
然而,当我运行一些命令时,比如git remote prune origin
在 GitBash 中,尽管运行命令,但它在控制台中给出以下错误:
Failed to load advapi32.dll
这是为什么 ?如果需要对凭据管理器设置进行某些操作,那么我需要完整解释如何进行这些设置以及每个设置的含义。
Note:我只在某些命令上遇到这个问题,其他命令运行正常,没有任何错误。
如果您正在使用适用于 Windows 的最新 Git https://github.com/git-for-windows/git/releases,确保将您的凭据助手设置为管理器,而不是 WinCred(前段时间已过时)
git config --global credential.helper manager
这将使用GCM 核心(Git 凭证管理器核心) https://github.com/Microsoft/Git-Credential-Manager-for-Windows.
As 这里提到 https://github.com/git-for-windows/git-sdk-64/tree/master/mingw64/doc/git-credential-manager:
它是 Windows 凭据存储的继承者Git (git-credential-winstore) https://archive.codeplex.com/?p=gitcredentialstore, 不再维护.
与 Git 的 Windows 内置凭证存储相比(wincred
),它为任何启用 HTTP 的 Git 存储库提供单因素身份验证支持,GCM 为 Azure DevOps、Team Foundation Server、GitHub 和 Bitbucket 提供多因素身份验证支持。
2021 年更新:GCM-Core https://github.com/microsoft/Git-Credential-Manager-Core现在是最新的解决方案,跨平台Windows-Linux-Mac。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)