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

简介: 来源:http://blog.csdn.net/happyteafriends/article/details/11554043 github push错误:   [html] view plaincopyprint?   git push   error: Th...

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

github push错误:

 

[html]  view plaincopyprint?在CODE上查看代码片派生到我的代码片
 
  1. git push  
  2. 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 plaincopyprint?在CODE上查看代码片派生到我的代码片
 
  1. [remote "origin"]  
  2.     url = https://github.com/wangz/example.git  
为:

 

 

[plain]  view plaincopyprint?在CODE上查看代码片派生到我的代码片
 
  1. [remote "origin"]  
  2.     url = https://wangz@github.com/wangz/example.git  
再次git push,弹出框输入密码,即可提交
目录
相关文章
|
机器学习/深度学习 前端开发 JavaScript
源映射错误: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
222 0
源映射错误:Error: request failed with status 404 源 URL:http://localhost:8080/bootstrap/js/axios-0.18.0.js
|
10月前
|
网络安全 开发工具 git
解决fatal:remote error:You can’t push to git://github.com/username/*.g
通过上述诊断与修复步骤,绝大多数的推送错误都能得到有效解决,确保您的Git工作流顺畅无阻。
488 1
|
开发工具 git
GitHub——Error: Process completed with exit code 126.
GitHub——Error: Process completed with exit code 126.
269 1
GitHub——Error: Process completed with exit code 126.
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
154 3
The requested URL could not be retrieved
The requested URL could not be retrieved
233 1
|
前端开发 安全 测试技术
【Python】已解决:The method is not allowed for the requested URL.
【Python】已解决:The method is not allowed for the requested URL.
1579 3
|
存储 开发工具 数据安全/隐私保护
解决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
4089 0
|
开发工具 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‘
Error: Cannot find module ‘node:url‘【已解决】
Error: Cannot find module ‘node:url‘【已解决】
816 3
|
开发工具 git
出现“error: failed to push some refs to ‘https://github.com/****.git‘”,如何解决问题
出现“error: failed to push some refs to ‘https://github.com/****.git‘”,如何解决问题
1792 1

热门文章

最新文章