1

我正在使用 Git-Credential-Manager-for-Windows 版本 1.6.0(也尝试过 1.5.0):https ://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases

Git-Credential-Manager-for-Windows 包含在我正在使用的 Windows 的 Git 中(已尝试 2.9.3 和 2.9.2)https://github.com/git-for-windows/git/releases

我有以下问题:

如果您激活凭证管理器并例如拉取存储库,则会要求您提供登录凭证。凭据保存在(控制面板的)Windows 凭据管理器中,用户无需重新输入凭据。

但是,如果用户输入了错误的凭据或更改了密码,则凭据管理器会保存错误的凭据。

我在 git-credential-manager-for windows 命令的帮助页面上找到了以下内容:

    Git Configuration Options:

(...)

  validate     Causes validation of credentials before supplying them
               to Git. Invalid credentials get a refresh attempt
               before failing. Incurs some minor overhead.
               Defaults to TRUE. Ignored by Basic authority.

(...)

  preserve     Prevents the deletion of credentials even when they are
               reported as invalid by Git. Can lead to lockout situations once credentials
               expire and until those credentials are manually removed.
               Defaults to FALSE.

我的理解如下:

credential-manager应该验证凭据(因为默认情况下这是 true),并且如果它们是错误的,则不应阻止删除(因为默认情况下这是 false)

但是凭据不会被删除,即使它们是错误的!

我已经尝试在配置文件中手动设置“验证”和“保留”,但没有成功......

我知道我总是可以从控制面板手动删除凭据,但这不是我公司喜欢的解决方案。

此致

卢卡斯

4

0 回答 0