1. 程式人生 > ><問題解決02>Linux虛擬機使用git push報錯--解決方案如下:

<問題解決02>Linux虛擬機使用git push報錯--解決方案如下:

hello class lai git onf http afr 再次 log

問題描述:

  使用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://[email protected]github.com/Newlyfly/Hello_World.git

  再次git push,彈出框輸入密碼,即可提交

<問題解決02>Linux虛擬機使用git push報錯--解決方案如下: