解决github push错误The requested URL returned error: 403 Forbidden while accessing
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决github push错误The requested URL returned error: 403 Forbidden while accessing相关的知识,希望对你有一定的参考价值。
github push错误:
git push -u origin master error: The requested URL returned error: 403 Forbidden while accessing https://github.com/huangzhazha/studygit.git/info/refs fatal: HTTP request failed
git version 1.7.1
OS:CENTOS
解决方案:
vim .Git/config
修改
[remote "origin"] url = https://github.com/huangzhazha/studygit.git
为:
[remote "origin"] url = https://[email protected]/huangzhazha/studygit.git
再次
git push -u origin master
弹出框输入密码,即可提交。
本文出自 “焯焯先生的博客” 博客,请务必保留此出处http://chaohuang.blog.51cto.com/6843018/1895880
以上是关于解决github push错误The requested URL returned error: 403 Forbidden while accessing的主要内容,如果未能解决你的问题,请参考以下文章
解决git在Http协议下出现“HTTP 500 curl 22 The requested URL returned”
执行git push命令时报错unable to access ‘https://github.com/xxx.git/‘: The requested URL returned error: 403