Windows系统下如何删除已经保存的账号密码

Windows系统下如何删除已经保存的账号密码:
https://blog.csdn.net/ouyang_peng/article/details/80983996

以管理员身份运行gitbash.exe文件
使用 git config --system --unset credential.helper 方法 清除保存好的账号密码
git config --system --unset credential.helper
之后再进行git操作时,弹出用户名密码窗口,输入即可

让git for windows记住密码
store
执行这个命令git config --global credential.helper store

添加Git Config 内容
进入git bash终端, 输入如下命令:
git config --global credential.helper store
执行完后查看%HOME%目录下的.gitconfig文件,会多了一项:
[credential]
helper = store
重新开启git bash会发现git push时不用再输入用户名和密码

检查命令是否成功

$ git config -l | grep credential
credential.helper=store

git config --global credential.helper store

.gitconfig 文件中添加 [credential] helper = store 或者在git bash 中执行 git config --global credential.helper store

发布了33 篇原创文章 · 获赞 6 · 访问量 20万+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章