繁体   English   中英

Control Panel的Credential Manager和git的credential helpers Credential Manager和Credential manager Core一样吗

[英]Is Control Panel's Credential Manager same as git's credential helpers Credential Manager and Credential manager Core

我正在运行最新的Git For Windows 2.29.2 ,对我而言, credential.helper默认设置为manager-core 我确实确认运行git config --system list

我的 Git 安装显示它有两个凭证助手

  1. Git Windows 的凭据管理器(较新版本的 Git 中已弃用的早期帮助程序)以及,
  2. Git Credential Manager Core(较新版本的 Git 中的默认助手)

在 git 终端中运行version命令确认它们的存在:

$ git credential-manager version
Git Credential Manager for Windows version 1.20.0
$ git credential-manager-core --version
Git Credential Manager version 2.0.280-beta+1f4c6db90f (Windows, .NET Framework 4.0.30319.42000)

现在看来,git 基本上可以使用三种方式来管理凭据:

(一种)。 Windows 凭据管理器(控制面板内的那个),

(二). Git Windows 的凭证管理器,以及

(C)。 Git Cre.netial 管理核心。

如果我的理解是正确的,那么根据这个 SO 帖子credential.helper=manager与控制面板的Windows Crendential Manager相同。

这是否意味着credential.helper=manager-core也与控制面板的凭据管理器相同。

我在这里对哪个是什么有点困惑。 这三个是相同的还是彼此不同并分别存储凭据。

凭证助手是一个可执行文件,负责存储和检索 git 的凭证。

windows 凭证管理器是在 Windows 中存储凭证的地方。

managermanager-core凭证助手都使用 windows 凭证管理器来存储凭证(它们基本上是相同的助手,但manager使用 dotnet framework 而manager-core使用 dotnet core)。

https://github.com/microsoft/Git-Credential-Manager-Core

https://github.com/microsoft/Git-Credential-Manager-for-Windows

https://git-scm.com/docs/gitcredentials

git 凭据助手只是 git 独立安装附带的实用程序。

Windows 凭据管理器是管理和存储 git 回购(帐户)以及 Whatsapp、Microsoft 帐户和其他帐户等所有其他内容的凭据(用户名和密码)的地方。

当您访问远程(使用 HTTPS 链接的服务器上的远程 git 存储库)时,git 凭证助手会自动运行,获取您的凭证并在 windows 凭证管理器上为它们创建一个新条目,这样您就不必在每次访问远程帐户时都输入它们回购。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM