Can a project have multiple origins?

后端 未结 7 2153
误落风尘
误落风尘 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条回答
  •  旧时难觅i
    2020-12-02 04:29

    you can add another remote account to your repository through giving different name instead of origin. You can use name such as origin2. so your git command can be modified as

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

提交回复
热议问题