github push错误:
- git push
- error: The requested URL returned error: 403 Forbidden while accessing https://github.com/wangz/future.git/info/refs
OS:CENTOS
解决方案:
vim .git/config
修改
- [remote "origin"]
- url = https://github.com/wangz/example.git
- [remote "origin"]
- url = https://wangz@github.com/wangz/example.git
再次git push,弹出框输入密码,即可提交
转自:http://blog.youkuaiyun.com/happyteafriends/article/details/11554043

本文介绍了一种常见的GitHub操作问题——推送时出现403 Forbidden错误的解决方案。通过修改.git/config文件中远程仓库的URL格式,并重新进行推送操作,可以成功解决该问题。
1252

被折叠的 条评论
为什么被折叠?



