Git 凭证辅助工具
本页面列出了可用的 凭证辅助工具 (credential helpers)。
Git 内置
- git-credential-store:以明文形式保存凭证。
- git-credential-cache:将凭证临时保存在进程内存中。(请注意,由于凭证在缓存过期或系统重启时会丢失,因此存储长效的个人访问令牌并不方便。)
特定平台存储
- git-credential-osxkeychain:存储在 macOS 钥匙串 中。包含在 macOS 的 Git 安装包中。
- git-credential-libsecret:存储在 Linux 密钥服务中,如 GNOME Keyring 或 KDE Wallet。已在许多 Linux 发行版中打包。
- git-credential-wincred:存储在 Windows 凭据管理器 中。包含在 Git for Windows 中。
OAuth
以下跨平台辅助工具支持使用 OAuth 进行身份验证。首次验证时会打开浏览器窗口连接到主机。后续验证将在后台进行。
- Git Credential Manager:包含在 Git for Windows 中。支持多种凭据存储方式。
- git-credential-oauth:已包含在许多 Linux 发行版中。
特定存储
- git-credential-gopass:存储在 gopass 密码管理器中。
- git-credential-lastpass:存储在 LastPass 密码管理器中。
- git-credential-1password:存储在 1Password 密码管理器中。
- git-credential-keepassxc:存储在 KeePassXC 密码管理器中。
特定主机
- git-credential-netlify:用于 Netlify 的身份验证。
- git-credential-azure:用于 Azure Repos 的身份验证。