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就可以。

04-16 06:40
查看更多