一个项目可以有多个起源吗? - Can a project have multiple origins?

问题:

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.我想将一个项目同时推送到githubHeroku服务器。

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?
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章