Others

解决git使用push提交到远程仓库出现403错误的问题

问题出现

由于电脑之前切换过github账号,此次git clone的项目是原有账号的项目,然后提交到远程仓库时就出现了如下错误:

remote: Permission to userName/repositorieName.git denied to clxering.
fatal: unable to access 'https://github.com/userName/repositorieName.git/': The requested URL returned error: 403

解决方案

打开cmd,输入命令:rundll32.exe keymgr.dll,KRShowKeyMgr,出现存储的用户名和密码窗口 将github相关的条目删除 重新执行命令:git push -u origin master,提示输入账户名及密码后,成功。

参考资料

https://blog.csdn.net/weixin_33701294/article/details/86784224

最近的文章

使用GitHub Actions进行持久化构建

更早的文章

如何优雅的关闭VMWare虚拟机

欢迎在评论区留下您的见解~