问题:
Can a project have two (or more) "origins" in Git?一个项目在 Git 中可以有两个(或更多)“起源”吗?
I would like to push a single project to both github and a Heroku server.我想将一个项目同时推送到github和Heroku服务器。
Specifically, this error appears when adding the github repository:具体是在添加github仓库时出现这个错误:
$ git remote add origin https://github.com/Company_Name/repository_name.git
fatal: remote origin already exists.
解决方案:
参考一: https://stackoom.com/question/n3Hp参考二: Can a project have multiple origins?