1. 保存密碼:
git config credential.helper store
全局配置方式:
git config --global credential.helper store
或者手動修改項目.git\config文件
[credential]
? ? helper = store
2. 保存密碼一定期限:
git config --global credential.helper cache
輸入的密碼緩存默認15分鐘.
或者指定緩存時間:
git config --global credential.helper "cache --timeout=3600"