-
git checkout master
to swtich to your master branch (if you're not already there) -
heroku create
-
git push heroku master
push localmaster
branch to heroku'smaster
branch -
debug any errors you get from the
git push
command
Same as [deploy master branch to heroku] except the last command is:
(given your branch name is "my_feature")
git checkout my_feature
git push heroku my_feature:master
(heroku will only run themaster
branch of its own repo, so you must specifymaster
as the target branch for the push