Heroku: How to push different local Git branches to Heroku/master
See https://devcenter.heroku.com/articles/git#deploying-code
$ git push heroku yourbranch: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:master
git push -f heroku HEAD:master