git使用报错fatal: remote origin already exists.

版权声明:原创文章转载请声明出处https://blog.csdn.net/qq_40374604 https://blog.csdn.net/qq_40374604/article/details/85226447

$ 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

猜你喜欢

转载自blog.csdn.net/qq_40374604/article/details/85226447