git 保存用户名和密码
场景:设置完用户名和密码,push 代码时还提示输入用户名和密码
首先 git 执行了以下命令:
git config --global user.name ‘xxxx’
git config --global user.password ‘xxxx’
但是提交代码时还需要输入用户名和密码
需要再执行以下命令即可:
git config --global credential.helper store
git config credential.helper store