Can a project have multiple origins?

后端 未结 7 2152
误落风尘
误落风尘 2020-12-02 03:33

Can a project have two (or more) \"origins\" in Git?

I would like to push a single project to both github and a Heroku server.

Specifically, this error appea

7条回答
  •  执念已碎
    2020-12-02 04:34

    git remote add origin2 https://github.com/Company_Name/repository_name.git
    

    and for push use:

    git push -u origin2 master
    

提交回复
热议问题