fatal: unable to access ‘‘: The requested URL returned error:403 解决方法 - git

时间:2024-04-09 12:49:12

好久没用的机器, 突然想把之前写的代码提交到仓库里面, 结果报错fatal: unable to access 'https://github.com/ClearlightY/Python_learn.git/': The requested URL returned error: 403… 真是奇了怪了

解决的首先方式是 重新配置ssh, 本地生成id_rsa.pub添加到github上结果还是老样子, 依然包权限错误…
fatal: unable to access ‘‘: The requested URL returned error:403 解决方法 - git

emm

然后开始百度了,

真正解决方法, 感谢这位老哥~
解决git 提交报fatal: unable to access ’ ': The requested URL returned error: 403 错(亲测可行)

就像那位老哥说的一样

打开控制面板->凭证管理器->Windows凭据
fatal: unable to access ‘‘: The requested URL returned error:403 解决方法 - git
找到github的凭据后, 删除它, 然后重新到仓库执行git push origin master去提交你的代码, 它会让你填写GitHub的用户名和密码, 填写正确后, 即可进行正常推送~

好了, 继续Coding吧, 不妨收藏下来, 下次再出了问题, 记得 重新搞一下就好啦, 不要再这上面浪费太多时间.