Skip to content

Deploying another branch to Heroku

Joel Meador edited this page Jun 8, 2026 · 1 revision

I want to deploy another branch than main to heroku, how do I do that?

You can push an arbitrary branch to heroku with the following syntax: local-branch:remote-branch.

For example:

git push heroku my-branch:main

This works for more than just Heroku too! Do this at your and everyone else's risk!

Home

TODO: can we recreate the tag system here roughly with sections about certain subjects?

Clone this wiki locally