Push different branch to Heroku

前端 未结 2 446
再見小時候
再見小時候 2021-01-30 10:35

Just finised work on my other branch. Now I need to test that this works on Heroku before I merge with the master branch.

Is it possible to pus

2条回答
  •  梦谈多话
    2021-01-30 10:43

    Yes, pushing to a branch named differently that your current one is possible using the syntax:

    git push heroku other:master
    

    This tells Git to push the contents of your other branch to the master branch on the heroku remote. Keep in mind that you may have to force push if there are commits on heroku/master that don't appear in your other branch.

    For more information have a look at the documentation of the option to git push.

提交回复
热议问题