POOPE 发表于 2021-7-1 22:52:59

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

  $ 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

  
页: [1]
查看完整版本: git使用报错fatal: remote origin already exists.