解决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,如需转载请自行联系原作者






目录
打赏
0
0
0
0
347
分享
相关文章
源映射错误:Error: request failed with status 404 源 URL:http://localhost:8080/bootstrap/js/axios-0.18.0.js
源映射错误:Error: request failed with status 404 源 URL:http://localhost:8080/bootstrap/js/axios-0.18.0.js
171 0
源映射错误:Error: request failed with status 404 源 URL:http://localhost:8080/bootstrap/js/axios-0.18.0.js
解决fatal:remote error:You can’t push to git://github.com/username/*.g
通过上述诊断与修复步骤,绝大多数的推送错误都能得到有效解决,确保您的Git工作流顺畅无阻。
313 1
|
7月前
|
GitHub——Error: Process completed with exit code 126.
GitHub——Error: Process completed with exit code 126.
142 1
GitHub——Error: Process completed with exit code 126.
|
7月前
optional install error: Error: Unsupported URL Type: npm:vue-loader@^16.1.0
optional install error: Error: Unsupported URL Type: npm:vue-loader@^16.1.0
73 3
|
8月前
The requested URL could not be retrieved
The requested URL could not be retrieved
112 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
1265 0
【Python】已解决:The method is not allowed for the requested URL.
【Python】已解决:The method is not allowed for the requested URL.
720 3
【已解决】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‘
|
9月前
Error: Cannot find module ‘node:url‘【已解决】
Error: Cannot find module ‘node:url‘【已解决】
403 3
出现“error: failed to push some refs to ‘https://github.com/****.git‘”,如何解决问题
出现“error: failed to push some refs to ‘https://github.com/****.git‘”,如何解决问题
974 1

热门文章

最新文章

AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等