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

简介:

github push错误:


[html] view plain copy

git push  

error: The requested URL returned error: 403 Forbidden while accessing https://github.com/wangz/future.git/info/refs  

git version 1.7.1


OS:CENTOS

解决方案:

vim .git/config

修改


[plain] view plain copy

[remote "origin"]  

    url = https://github.com/wangz/example.git  

为:



[plain] view plain copy

[remote "origin"]  

    url = https://wangz@github.com/wangz/example.git  

再次git push,弹出框输入密码,即可提交


http://blog.csdn.net/happyteafriends/article/details/11554043




      本文转自守护我们的幸福 51CTO博客,原文链接:http://blog.51cto.com/12085228/1983450,如需转载请自行联系原作者






相关文章
|
缓存 网络协议 Linux
百度搜索:蓝易云【解决github push/pull报错443】
通过以上方法,你有望解决GitHub push/pull报错443的问题。如果问题仍然存在,建议检查GitHub的状态页面,看是否有正在维护或故障的情况。
283 3
|
网络安全 开发工具 git
解决fatal:remote error:You can’t push to git://github.com/username/*.g
通过上述诊断与修复步骤,绝大多数的推送错误都能得到有效解决,确保您的Git工作流顺畅无阻。
650 1
|
开发工具 git
GitHub——Error: Process completed with exit code 126.
GitHub——Error: Process completed with exit code 126.
356 1
GitHub——Error: Process completed with exit code 126.
The requested URL could not be retrieved
The requested URL could not be retrieved
440 1
|
前端开发 安全 测试技术
【Python】已解决:The method is not allowed for the requested URL.
【Python】已解决:The method is not allowed for the requested URL.
2018 3
|
开发工具 git
【已解决】error: failed to push some refs to ‘git@github.com:BATdalao/Github-green.git‘
【已解决】error: failed to push some refs to ‘git@github.com:BATdalao/Github-green.git‘
|
开发工具 git
出现“error: failed to push some refs to ‘https://github.com/****.git‘”,如何解决问题
出现“error: failed to push some refs to ‘https://github.com/****.git‘”,如何解决问题
2676 1
|
存储 开发工具 数据安全/隐私保护
解决Gitee或者Github出现Access denied fatal: unable to access,The requested URL returned error: 403
解决Gitee或者Github出现Access denied fatal: unable to access,The requested URL returned error: 403
5930 0
|
开发工具 git
Git上传出现:The requested URL returned error: 403解决办法
Git上传出现:The requested URL returned error: 403解决办法
987 0
|
4月前
|
人工智能 JavaScript 前端开发
Github 2024-10-28 开源项目周报 Top15
本周GitHub热门项目涵盖Svelte、Open Interpreter、PowerShell等,涉及Web开发、AI助手、自动化工具等领域,Python、JavaScript为主流语言,展现开源技术活跃生态。(239字)
536 19