1. 程式人生 > >github常見錯誤整理!

github常見錯誤整理!

cti could tail 我們 fatal detail 提示 文件 fig文件

1.fatal: remote origin already exists.錯誤

如果輸入$ Git remote add origin [email protected]:github帳號名/項目名.git

提示出錯信息:fatal: remote origin already exists.

解決辦法如下:

1>、先輸入$ git remote rm origin

2>、再輸入$ git remote add origin [email protected]:djqiang/gitdemo.git 就不會報錯了!

如果輸入$ git remote rm origin 還是報錯的話,error: Could not remove config section ‘remote.origin‘. 我們需要修改gitconfig文件的內容,打開它把裏面的[remote "origin"]那一行刪掉就好了!

轉載:http://blog.csdn.net/dengjianqiang2011/article/details/9260435

github常見錯誤整理!