git报错:'fatal:remote origin already exists'

只要两步:

1.先删除
$ git remote rm origin
2.重新添加
git remote add origin git@github.com:username/repostery.git //关联本地仓库,远程库的名字为origin

原文地址:https://www.cnblogs.com/zhangxuel1ang/p/14257753.html