码迷,mamicode.com
首页 > 数据库 > 详细

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

时间:2015-12-14 23:05:45      阅读:264      评论:0      收藏:0      [点我收藏+]

标签:

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

github push错误:

 

  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

修改

 

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

 

 

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

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

标签:

原文地址:http://www.cnblogs.com/imsoft/p/5046766.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!