push different branch to heroku code example
Example 1: how to push to heroku outside the master branch
git push -f heroku HEAD:master
Example 2: how to push different branch to heroku
git push heroku <other branch to push>:main
git push heroku login_feature:main