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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值