禁止 Git 自动保存账号密码
Version
git version 2.14.1.windows.1
默认情况下 git 使用 https 在输入账号密码后会保存到 windows 凭据下。
查看配置信息
| 1 | $ git config --global -l | 
可以看到类似如下的信息:
| 1 | core.symlinks=false | 
禁止自动保存密码
| 1 | $ git config --global --unset credential.helper | 
恢复自动保存密码
删除掉保存密码的配置就行。如果需要保存的话,可以使用:
| 1 | $ git config --global credential.helper manager |