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