报错: $ git remote add origin https://gitee. error: remote origin already exists.
最后找到解决办法如下:
1、先删除远程 Git 仓库
$ git remote rm origin
2、再添加远程 Git 仓库
$ git remote add origin gitee仓库地址
如果执行 git remote rm origin 报错的话,可以手动修改gitconfig文件的内容
$ vi .git/config
把 [remote “origin”] 那一行删掉就好了。



