Git Credential Manager Git 凭据管理器

这篇具有很好参考价值的文章主要介绍了Git Credential Manager Git 凭据管理器。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

Git Credential Manager (GCM) is a secure Git credential helper built on .NET that runs on Windows, macOS, and Linux. It aims to provide a consistent and secure authentication experience, including multi-factor auth, to every major source control hosting service and platform.


Git 凭据管理器 (GCM) 是基于 .NET 构建的安全 Git 凭据帮助程序,可在 Windows、macOS 和 Linux 上运行。它旨在为每个主要的源代码管理托管服务和平台提供一致且安全的身份验证体验,包括多因素身份验证。

GCM supports (in alphabetical order) Azure DevOps, Azure DevOps Server (formerly Team Foundation Server), Bitbucket, GitHub, and GitLab. Compare to Git's built-in credential helpers (Windows: wincred, macOS: osxkeychain, Linux: gnome-keyring/libsecret), which provide single-factor authentication support for username/password only.
GCM 支持(按字母顺序)Azure DevOps、Azure DevOps Server(以前称为 Team Foundation Server)、Bitbucket、GitHub 和 GitLab。与 Git 的内置凭据助手(Windows:wincred、macOS:osxkeychain、Linux:gnome-keyring/libsecret)相比,后者仅为用户名/密码提供单因素身份验证支持。

GCM replaces both the .NET Framework-based Git Credential Manager for Windows and the Java-based Git Credential Manager for Mac and Linux.
GCM 取代了基于 .NET Framework 的 Git 凭据管理器(适用于 Windows)和基于 Java 的 Git 凭据管理器(适用于 Mac 和 Linux)。

Install 安装

See the installation instructions for the current version of GCM for install options for your operating system.
有关操作系统的安装选项,请参阅当前版本的 GCM 的安装说明。

Current status 现状

Git Credential Manager is currently available for Windows, macOS, and Linux*. GCM only works with HTTP(S) remotes; you can still use Git with SSH:
Git 凭据管理器目前可用于 Windows、macOS 和 Linux*。GCM 仅适用于 HTTP(S) 远程;您仍然可以将 Git 与 SSH 一起使用:

  • Azure DevOps SSH
  • GitHub SSH
  • Bitbucket SSH
Feature 特征 Windows 窗户 macOS macOS操作系统 Linux*
Installer/uninstaller 安装程序/卸载程序
Secure platform credential storage (see more)
安全平台凭据存储(查看更多)
Multi-factor authentication support for Azure DevOps
Azure DevOps的多重身份验证支持
Two-factor authentication support for GitHub
GitHub 的双因素身份验证支持
Two-factor authentication support for Bitbucket
Bitbucket 的双因素身份验证支持
Two-factor authentication support for GitLab
GitLab 的双因素身份验证支持
Windows Integrated Authentication (NTLM/Kerberos) support
Windows 集成身份验证 (NTLM/Kerberos) 支持
N/A 不适用 N/A 不适用
Basic HTTP authentication support
基本 HTTP 身份验证支持
Proxy support 代理支持
amd64 support  amd64 支持
x86 support  x86 支持 N/A 不适用
arm64 support  arm64 支持 best effort 尽最大努力 best effort, no packages
尽最大努力,没有套餐
armhf support  armhf 支持 N/A 不适用 N/A 不适用 best effort, no packages
尽最大努力,没有套餐

(*) GCM guarantees support only for the Linux distributions that are officially supported by dotnet.
(*)GCM 保证仅支持 dotnet 正式支持的 Linux 发行版。

Supported Git versions 支持的 Git 版本

Git Credential Manager tries to be compatible with the broadest set of Git versions (within reason). However there are some know problematic releases of Git that are not compatible.
Git Credential Manager 尝试与最广泛的 Git 版本集兼容(在合理范围内)。但是,有一些已知的有问题的 Git 版本不兼容。

  • Git 1.x

    The initial major version of Git is not supported or tested with GCM.
    GCM 不支持或测试 Git 的初始主要版本。

  • Git 2.26.2

    This version of Git introduced a breaking change with parsing credential configuration that GCM relies on. This issue was fixed in commit 12294990 of the Git project, and released in Git 2.27.0.
    此版本的 Git 引入了 GCM 所依赖的解析凭据配置的重大更改。此问题已在 Git 项目的提交 12294990 中修复,并在 Git 2.27.0 中发布。

How to use 如何使用

Once it's installed and configured, Git Credential Manager is called implicitly by Git. You don't have to do anything special, and GCM isn't intended to be called directly by the user. For example, when pushing (git push) to Azure DevOps, Bitbucket, or GitHub, a window will automatically open and walk you through the sign-in process. (This process will look slightly different for each Git host, and even in some cases, whether you've connected to an on-premises or cloud-hosted Git host.) Later Git commands in the same repository will re-use existing credentials or tokens that GCM has stored for as long as they're valid.


安装和配置后,Git 会隐式调用 Git 凭据管理器。您无需执行任何特殊操作,并且 GCM 不应由用户直接调用。例如,将 ( git push ) 推送到 Azure DevOps、Bitbucket 或 GitHub 时,将自动打开一个窗口,并引导你完成登录过程。(对于每个 Git 主机,此过程看起来会略有不同,甚至在某些情况下,无论你是连接到本地还是云托管的 Git 主机。稍后,同一存储库中的 Git 命令将重复使用 GCM 存储的现有凭据或令牌,只要它们有效。

Read full command line usage here.
在此处阅读完整的命令行用法。

Configuring a proxy 配置代理

See detailed information here.
有关详细信息,请点击此处。

Additional Resources 其他资源

See the documentation index for links to additional resources.
有关其他资源的链接,请参阅文档索引。

Experimental Features 实验性功能

  • Windows broker (experimental)Windows 代理(实验性)

Future features 未来功能

Curious about what's coming next in the GCM project? Take a look at the project roadmap! You can find more details about the construction of the roadmap and how to interpret it here.
对 GCM 项目的下一步计划感到好奇吗?看看项目路线图!您可以在此处找到有关路线图构建以及如何解释路线图的更多详细信息。

Contributing 贡献

This project welcomes contributions and suggestions. See the contributing guide to get started.
本项目欢迎投稿和建议。请参阅贡献指南以开始使用。

This project follows GitHub's Open Source Code of Conduct.
此项目遵循 GitHub 的开源代码行为准则。

License 许可证

We're MIT licensed. When using GitHub logos, please be sure to follow the GitHub logo guidelines.
我们获得了麻省理工学院的许可。使用 GitHub 徽标时,请务必遵循 GitHub 徽标指南。
文章来源地址https://www.toymoban.com/news/detail-819483.html

到了这里,关于Git Credential Manager Git 凭据管理器的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • Jenkins基础篇--凭据(Credential)管理

    Jenkins的Credentials直译为证书、文凭,我们可以理解为它是钥匙,用来做某些事情的认证。 如Jenkins 和 GitLab交互时,需要添加GitLab的API令牌和登录凭证。 如Jenkins 添加从节点时,需要添加从节点的登录凭证或者Jenkins主机的密钥。 我们通过凭据来认证是合法用户。在jenkins中,我

    2024年02月01日
    浏览(31)
  • git跳过用户名密码验证,以及配置credential-helper

    平时我们在使用git命令时,如果使用http方式拉取代码每次都需要使用填写用户名和密码,非常的麻烦。 如何才能绕过每次繁琐的填充? 如果想要绕过git的交互方式,首先需要了解git的密码存储机制。 git使用的使用是一种名叫**[credential helper]**的工具来完成用户名密码存储的。

    2024年02月07日
    浏览(38)
  • 配置了git config --global credential.helper store后,还是弹出输入密码框

    使用http协议拉取代码时,每次pull/push都会弹出账号密码框,可以使用git的配置credential.helper来保存每次输入的账号密码到硬盘上,命令 git config --global credential.helper store ,store表示存到硬盘中,但是按照这样操作后 git pull 还是弹出密码框,通过 git config --list 发现此时的配置里有两个

    2024年02月05日
    浏览(69)
  • 如何使用git-credentials来管理git账号

    在Git版本控制系统中,经常会遇到需要输入用户名和密码的情况,以便验证身份和访问远程仓库。为了简化这个过程并提高安全性,Git提供了一个名为git-credentials的工具,可以帮助我们更好地管理密码。特别是安全性要求高的公司,每几个月就需要修改一次密码,又不允许

    2024年02月04日
    浏览(32)
  • Git账号密码凭据管理-win&mac

    win 打开 我的电脑 ,在地址栏输入【 控制面板用户帐户凭据管理器 】 mac cmmand + 空格 ,输入【钥匙串】。

    2024年02月12日
    浏览(29)
  • 关于Credential Helper Selector的问题

      最近在打开 Android Studio 的时候,弹出一个从未见过的窗口,如下:   网上说选择: no helper ,然后勾选 Always use this from now on ,我就这么照着做了,结果在 Android Studio 中使用 pull 和 push 按钮,总是无法拉取和推送代码。   在终端使用命令行的方式进行 git pull 和 git push 倒是

    2023年04月15日
    浏览(23)
  • 【Git】查看凭据管理器的账号信息,并删除账号,解决首次认证登录失败后无法重新登录的问题

    欢迎来到《小5讲堂》 大家好,我是全栈小5。 这是是《代码管理工具》序列文章,每篇文章将以博主理解的角度展开讲解, 特别是针对知识点的概念进行叙说,大部分文章将会对这些概念进行实际例子验证,以此达到加深对知识点的理解和掌握。 温馨提示:博主能力有限,

    2024年01月23日
    浏览(34)
  • Tomcat之服务管理页面manager部署

      Tomcat的管理页面Manager是一个Web应用程序,用于管理Tomcat服务器的部署和操作。它提供了一个易于使用的界面,可以通过Web浏览器访问。Manager可以帮助管理员对Tomcat服务器进行以下操作: 部署/卸载Web应用程序 查看Web应用程序的运行状态和统计信息 启动/停止Web应用程序

    2024年01月18日
    浏览(27)
  • Service Control Manager 服务管理器简介

    在windows驱动开发流程中,写完sys驱动binary之后,为了让OS能够正确的从注册表中读取到对应的信息,并且将其load运行起来,还需要编写inf文件来描述配置驱动文件。不过这也不是必须的,可以通过ServiceControlManager直接创建一个指定驱动binary的Service并且启动。如下code: 而通常

    2024年02月05日
    浏览(24)
  • pycharm管理仓库(Manager Repository)不见了

    经常使用pycharm的大佬们都知道,pycharm中内置了很多库和包,很好用 但是下载来用自带的源很麻烦,于是就用国内的源 可以当我们添加管理仓库的时候,却没有了按钮,如何解决呢? 回到pycharm的主界面,找到图中的Python packages,点击  点击齿轮设置 个别小伙伴使用的是2023版

    2024年01月16日
    浏览(32)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包