git config --global credential.helper cache
… which tells git to keep your password cached in memory for (by default) 15 minutes. You can?set a longer timeout?with:
记住密码一个小时:
git config --global credential.helper "cache --timeout=3600"
Windows客户端保存密码:
git config --global credential.helper winstore
或者手动修改 .gitconfig文件:
[credential]
helper = winstore
git config --global credential.helper store
腾讯云QCloud
2核2G4M云服务器,新老用户同享年付¥118
域名主机商优惠信息推送QQ群:
665443669
,获取商家优惠推送、禁言。