Heroku: How to push different local Git branches to Heroku/master Heroku: How to push different local Git branches to Heroku/master git git

Heroku: How to push different local Git branches to Heroku/master


When using a wildcard, it had to be present on both sides of the refspec, so +refs/heads/*:refs/heads/master will not work. But you can use +HEAD:refs/heads/master:

git config remote.heroku.push +HEAD:refs/heads/master

Also, you can do this directly with git push:

git push heroku +HEAD:mastergit push -f heroku HEAD:master


git push -f heroku local_branch_name:master