问题描述:

  使用git push 报错:  

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

  fatal: HTTP request failed

 

解决方案:

  解决方案来源博客地址:http://blog.csdn.net/happyteafriends/article/details/11554043

 

  vim .git/config

  修改

  1.     [remote "origin"]  
  2.     url = https://github.com/Newlyfly/Hello_World.git

  为:

  1.     [remote "origin"]  
  2.     url = https://Newlyfly@github.com/Newlyfly/Hello_World.git 

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

posted on 2017-09-18 00:36  22世纪  阅读(337)  评论(0编辑  收藏  举报