git错误fatal: remote origin already exists.

Posted 公主的咖啡屋

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了git错误fatal: remote origin already exists.相关的知识,希望对你有一定的参考价值。

输入 $git remote add origin https://github.com/用户名/项目.git,提示fatal: remote origin already exists.

 解决办法:

    1 、先输入$ git remote rm origin

    2、再输入git remote add origin https://github.com/用户名/项目.git

 

以上是关于git错误fatal: remote origin already exists.的主要内容,如果未能解决你的问题,请参考以下文章

Git 提示fatal: remote origin already exists 错误解决办法

Git 提示fatal: remote origin already exists 错误解决办法

Git 提示fatal: remote origin already exists 错误解决办法

gitGit 提示fatal: remote origin already exists 错误解决办法

git报错:'fatal:remote origin already exists

github错误:fatal: remote origin already exists.