Last Updated: February 25, 2016
·
8.131K
· vicsonic

How to push a different branch to heroku instead of master

To push a different branch to heroku instead of master you just need to:

git push heroku <YOUR_BRANCH>:master

e.g.,

If you want to push a branch called 'heroku' to heroku you should:

git push heroku heroku:master

Source: Heroku Deployment Guide