码迷,mamicode.com
首页 > 系统相关 > 详细

<问题解决02>Linux虚拟机使用git push报错--解决方案如下:

时间:2017-09-18 01:11:30      阅读:186      评论:0      收藏:0      [点我收藏+]

标签:forbidden   提交   ret   error:   origin   bsp   detail   led   remote   

问题描述:

  使用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,弹出框输入密码,即可提交

<问题解决02>Linux虚拟机使用git push报错--解决方案如下:

标签:forbidden   提交   ret   error:   origin   bsp   detail   led   remote   

原文地址:http://www.cnblogs.com/newlyfly/p/7538908.html

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