heroku deploy create heroku/main branch automatically code example
Example 1: how to push to heroku outside the master branch
git push -f heroku HEAD:master
Example 2: heroku and github on termi
$ git push heroku master
Initializing repository, done.
updating 'refs/heads/master'
...