来源:https://blog.youkuaiyun.com/top_code/article/details/50381432
使用git 添加远程github仓库的时候提示错误:fatal: remote origin already exists

解决办法:
1、先删除远程 Git 仓库
$ git remote rm origin
2、再添加远程 Git 仓库
$ git remote add origin git地址
本文介绍了在使用Git过程中遇到的远程仓库重复错误'fatal:remoteoriginalreadyexists'的解决方案。首先,通过命令'gitremotermorigin'删除已存在的远程仓库,然后使用'gitremoteaddorigingit地址'重新添加正确的远程仓库。
来源:https://blog.youkuaiyun.com/top_code/article/details/50381432
使用git 添加远程github仓库的时候提示错误:fatal: remote origin already exists

解决办法:
1、先删除远程 Git 仓库
$ git remote rm origin
2、再添加远程 Git 仓库
$ git remote add origin git地址
4万+

被折叠的 条评论
为什么被折叠?