碰到 fatal: remote origin already exists.

在执行
$ git remote add origin git@github.com:your_github_username/hello_laravel.git
弹出错误fatal: remote origin already exists. 时:
$ git remote rm origin
$ git remote add origin
若此处无错误提示,继续执行即可:
$ git remote add origin git@github.com:your_github_username/hello_laravel.git

《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 Laravel 框架的设计哲学。
《G01 Go 实战入门》
从零开始带你一步步开发一个 Go 博客项目,让你在最短的时间内学会使用 Go 进行编码。项目结构很大程度上参考了 Laravel。
讨论数量: 3

先删除远程 Git 仓库
$ git remote rm origin

再重新添加远程仓库

5年前 评论

问题可以解决,但是每次提交都会出现这个问题,怎么才能彻底问题呢?

4年前 评论

感谢,上传成功

1年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!