Can a project have multiple origins?

后端 未结 7 2165
误落风尘
误落风尘 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:32

    git remote set-url --add --push origin git@github.com:user/my-project.git
    git remote set-url --add --push origin git@bitbucket.org:user/my-project.git
    

    Now you have 2 origins.

提交回复
热议问题