問題:
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?