git账号密码输错了,但是缓存一直存在

解决方法:

1.首先先清空缓存

git config --system --unset credential.helper

2.再次git clone  url

3.重新输入账号,再输入密码

虽然这样可以成功,但是会导致一个问题:每次修改都要登录,所以还要写上以下语句

 

git config --global credential.helper store

这样的话,再登录一次,就会永久保存啦,很方便。
---------------------
作者:Z_DZ
来源:CSDN
原文:https://blog.csdn.net/qq_38006520/article/details/81292223
版权声明:本文为博主原创文章,转载请附上博文链接!

posted @ 2019-04-03 09:53  xajianzhan  阅读(690)  评论(0)    收藏  举报