删除本地Git保存的账号密码

 

转载:https://blog.csdn.net/xudailong_blog/article/details/78798118

这是我的报错信息。

$ git push -u origin master
remote: Permission to cnhyx/companyWeb1.git denied to huangyuxinK.
fatal: unable to access 'https://github.com/cnhyx/companyWeb1.git/': The requested URL returned error: 403

场景:

因为自己有两个github账户,然后还有个coding账号,导致将代码上传到github上传失败,即:上传的用户与所在的仓库不匹配,导致上传失败,这里做一下总结

一个很笨的方法:

在win10或者win7都是一样的步骤:

(一)进入控制面板

(二)选择用户账户

(三)选择管理你的凭据

(四)选择Windows凭据

(五)选择git保存的用户信息

(六)选择编辑或者进行删除操作

(七)完成

下面是部分图片:

管理windows凭据.png

编辑git用户名与密码.png

你可能感兴趣的:(版本控制)