git使用報錯fatal: remote origin already exists.

rodertW發表於2018-12-23

$ git remote add origin https://github.com/wangshiyu777/gitusetest.git

fatal: remote origin already exists.

$ git remote add origin https://github.com/wangshiyu777/gitusetest.git          
fatal: remote origin already exists.                                            

 報錯:

解決需2步:

一:刪除

$ git remote rm origin

二:再次執行新增就可以了。 

$ git remote add origin https://github.com/wangshiyu777/gitusetest.git

 

相關文章