- 1、credential.helper 憑證存儲
默認(rèn)情況下是根本不緩存。如果你使用的是http,那么每個(gè)連接都會提示輸入用戶名和密碼。
針對于非SSH傳輸,為了方便通常配置credential.helper
為store
。
語法:
git config --global credential.helper 'store --file <path>'
如果不跟<path>,則默認(rèn)文件為~/.git-credentials
:
如:
// 保存密碼,默認(rèn)路徑
git config --global credential.helper store
- 2、core.ignorecase 文件名大小寫敏感
默認(rèn)值為false
,在git-clone
或git-init
會探測并設(shè)置core。
// 文件名大小寫敏感
git config --global core.ignorecase false