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 進行身份驗證。