Last updated 17 August 2020
Table of Contents
Heroku deploys from the
master branches. When you push either of those branches to the
heroku remote, Heroku builds and runs the pushed code as the latest version of your app.
Note that pushing code to any other branch has no effect.
Anytime you see a
master branch in the Heroku documentation,
you can replace it with
main for equivalent functionality.
Migrating from ‘master’ to 'main’
To make this change on an existing app using
$ git checkout master $ git checkout -b main
Afterwards, you can deploy with
$ git push heroku main