git fatal: 遠程 origin 已經存在。

不當心將git遠程地址配錯了,再次配置提示如下錯誤:git

fatal: 遠程 origin 已經存在。github

此時只須要將遠程配置刪除,從新添加便可;server

git remote rm originrem

git remote add origin https://github.com/***/WebCrawlers.gitit

再次提交文件便可正常使用配置

粗心形成的小錯誤,順便說一下,若是git沒有commit就執行push操做會出現如下錯誤文件

fatal: unable to access 'https://github.com/***/WebCrawlers.git/': Empty reply from serverco

解決:只須要先commit 在 push便可遠程

相關文章
相關標籤/搜索