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 憑據(jù)管理器 (GCM) 是基于 .NET 構(gòu)建的安全 Git 憑據(jù)幫助程序,可在 Windows、macOS 和 Linux 上運行。它旨在為每個主要的源代碼管理托管服務(wù)和平臺提供一致且安全的身份驗證體驗,包括多因素身份驗證。
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 的內(nèi)置憑據(jù)助手(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 憑據(jù)管理器(適用于 Windows)和基于 Java 的 Git 憑據(jù)管理器(適用于 Mac 和 Linux)。
Install?安裝
See the?installation instructions?for the current version of GCM for install options for your operating system.
有關(guān)操作系統(tǒng)的安裝選項,請參閱當(dāng)前版本的 GCM 的安裝說明。
Current status?現(xiàn)狀
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 憑據(jù)管理器目前可用于 Windows、macOS 和 Linux*。GCM 僅適用于 HTTP(S) 遠(yuǎn)程;您仍然可以將 Git 與 SSH 一起使用:
- Azure DevOps SSH
- GitHub SSH
- Bitbucket SSH
Feature?特征 | Windows?窗戶 | macOS?macOS操作系統(tǒng) | Linux* |
---|---|---|---|
Installer/uninstaller?安裝程序/卸載程序 | ? | ? | ? |
Secure platform credential storage?(see more) 安全平臺憑據(jù)存儲(查看更多) |
? | ? | ? |
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 發(fā)行版。
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 版本集兼容(在合理范圍內(nèi))。但是,有一些已知的有問題的 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 所依賴的解析憑據(jù)配置的重大更改。此問題已在 Git 項目的提交?12294990
?中修復(fù),并在 Git 2.27.0 中發(fā)布。
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 會隱式調(diào)用 Git 憑據(jù)管理器。您無需執(zhí)行任何特殊操作,并且 GCM 不應(yīng)由用戶直接調(diào)用。例如,將 (?git push
?) 推送到 Azure DevOps、Bitbucket 或 GitHub 時,將自動打開一個窗口,并引導(dǎo)你完成登錄過程。(對于每個 Git 主機(jī),此過程看起來會略有不同,甚至在某些情況下,無論你是連接到本地還是云托管的 Git 主機(jī)。稍后,同一存儲庫中的 Git 命令將重復(fù)使用 GCM 存儲的現(xiàn)有憑據(jù)或令牌,只要它們有效。
Read full command line usage?here.
在此處閱讀完整的命令行用法。
Configuring a proxy?配置代理
See detailed information?here.
有關(guān)詳細(xì)信息,請點擊此處。
Additional Resources?其他資源
See the?documentation index?for links to additional resources.
有關(guān)其他資源的鏈接,請參閱文檔索引。
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 項目的下一步計劃感到好奇嗎?看看項目路線圖!您可以在此處找到有關(guān)路線圖構(gòu)建以及如何解釋路線圖的更多詳細(xì)信息。
Contributing?貢獻(xiàn)
This project welcomes contributions and suggestions. See the?contributing guide?to get started.
本項目歡迎投稿和建議。請參閱貢獻(xiàn)指南以開始使用。
This project follows?GitHub's Open Source Code of Conduct.
此項目遵循 GitHub 的開源代碼行為準(zhǔn)則。文章來源:http://www.zghlxwxcb.cn/news/detail-819483.html
License?許可證
We're?MIT?licensed. When using GitHub logos, please be sure to follow the?GitHub logo guidelines.
我們獲得了麻省理工學(xué)院的許可。使用 GitHub 徽標(biāo)時,請務(wù)必遵循 GitHub 徽標(biāo)指南。文章來源地址http://www.zghlxwxcb.cn/news/detail-819483.html
到了這里,關(guān)于Git Credential Manager Git 憑據(jù)管理器的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!