Git 凭据助手
本页面列出了可用的 凭据助手。
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 凭据管理器中。包含在适用于 Windows 的 Git 中。
OAuth
以下跨平台助手支持使用 OAuth 进行身份验证。首次身份验证会在浏览器中打开一个窗口指向主机。后续身份验证在后台进行。
- Git Credential Manager: 包含在适用于 Windows 的 Git 中。支持多种凭据存储。
- 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 进行身份验证。