您的位置:首页 > 产品设计 > UI/UE

解决github push错误The requested URL returned error: 403 Forbidden while accessing

2015-11-18 17:56 423 查看
github push错误:

error: The requested URL returned error:
403 Forbidden while accessing https://github.com/sunzhy/MyRepository/info/refs 
fatal: HTTP request failed


解决方案:

ls -a
vim .git/config


修改:

[remote "origin"]
url = https://github.com/xxx/MyRepository[/code] 
为:

[remote "origin"]
url = https://xxx@github.com/xxx/MyRepository[/code] 
再次git push,弹出框输入密码,即可提交
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: