Push failed: Failed with error: unable to access 'https://github.com/studylw/WebDemo.git/': The requested URL returned error: 403
使用Intellij 从GitHub上Clone代码可以, Commit 代码也可以,就是push的时候失败,失败信息如上。
解决方法:安装GitHub客户端
下载地址:https://desktop.github.com/
原理分析:在安装客户端时GitHub网站将你的账号对你所使用的计算机进行了授权,机器没有授权的时候你去push代码,给你返回403,拒绝访问。
(ps:Commit:应该是将代码提交到本地仓库,push是将代码提交到远程仓库(即:GitHub网站仓库)