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

逃离我推掉我的手 2023-10-18 13:02 83阅读 0赞

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

fatal: remote origin already exists.







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

报错:

解决需2步:

一:删除

  1. $ git remote rm origin

二:再次执行添加就可以了。 

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

发表评论

表情:
评论列表 (有 0 条评论,83人围观)

还没有评论,来说两句吧...

相关阅读