English ▾
git-credential-cache 手冊的本地化版本
主題 ▾
最新版本 ▾ git-credential-cache 上次更新於 2.43.0
git-credential-cache 手冊的變更
設定與配置
取得與建立專案
基本快照
分支與合併
分享與更新專案
檢查與比較
修補
除錯
電子郵件
外部系統
伺服器管理
指南
管理
底層命令
- 2.43.1 → 2.47.0 無變更
-
2.43.0
11/20/23
- 2.40.1 → 2.42.3 無變更
-
2.40.0
03/12/23
- 2.39.1 → 2.39.5 無變更
-
2.39.0
12/12/22
- 2.18.1 → 2.38.5 無變更
-
2.18.0
06/21/18
- 2.14.6 → 2.17.6 無變更
-
2.13.7
05/22/18
- 2.9.5 → 2.12.5 無變更
-
2.8.6
07/30/17
- 2.1.4 → 2.7.6 無變更
-
2.0.5
12/17/14
描述
此命令會快取憑證,供未來 Git 程式使用。儲存的憑證會保存在快取守護進程的記憶體中(而不是寫入檔案),並且會在可設定的逾時時間後被遺忘。如果快取守護進程死掉,例如系統重新啟動,憑證會更快被遺忘。快取可以透過 Unix 網域通訊端存取,並且透過檔案系統權限限制為目前的用戶。
您可能不想直接調用此命令;它旨在作為 Git 其他部分的憑證輔助程式使用。請參閱 gitcredentials[7] 或下方的 範例
。
範例
此輔助程式的目的是減少您必須輸入使用者名稱或密碼的次數。例如
$ git config credential.helper cache $ git push http://example.com/repo.git Username: <type your username> Password: <type your password> [work for 5 more minutes] $ git push http://example.com/repo.git [your credentials are used automatically]
您可以透過 credential.helper 配置變數提供選項 (此範例將快取時間增加到 1 小時)
$ git config credential.helper 'cache --timeout=3600'
GIT
屬於 git[1] 套件的一部分