欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 编程资源 > 编程问答 >内容正文

编程问答

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

发布时间:2025/6/15 编程问答 37 豆豆
生活随笔 收集整理的这篇文章主要介绍了 解决github push错误The requested URL returned error: 403 Forbidden while accessing(转) 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

github push错误:

 

  • 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

    修改

     

  • [remote "origin"]  
  •     url = https://github.com/wangz/example.git  
  • 为:

     

     

  • [remote "origin"]  
  •     url = https://wangz@github.com/wangz/example.git  
  • 再次git push,弹出框输入密码,即可提交

     

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

    总结

    以上是生活随笔为你收集整理的解决github push错误The requested URL returned error: 403 Forbidden while accessing(转)的全部内容,希望文章能够帮你解决所遇到的问题。

    如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。