git提交代码时,出现这个错误“error: The requested URL returned error: 403 Forbidden while accessing https”

     解决方法:

     编辑.git目录下的config文件即可。

vim .git/config
#修改对于的配置
#原来的url = https://github.com/elitecodegroovy/PhoenixC.git

url = https://elitecodegroovy@github.com/elitecodegroovy/PhoenixC.git

     重新提交,弹出的对话框中输入正确的passphrase即可。
Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐