Push different branch to Heroku

前端 未结 2 410
再見小時候
再見小時候 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 11:04

    git push -f heroku otherBranch:master
    

    The -f (force flag) is recommended in order to avoid conflicts with other developers’ pushes. Since you are not using Git for your revision control, but as a transport only, using the force flag is a reasonable practice.

    source :- offical docs

提交回复
热议问题