NOTICE: When I say "appname" it means enter your own! It's not a command or name native to git or Heroku.
By default, your one and only remote is called "heroku". This is why you do things like $ git push heroku master, you're pushing to the master branch of heroku
. What we want is two remotes: one staging, one production. You can view your remotes by typing...
$ heroku apps:create staging-appname
$ git remote -v
// this should return:
// heroku [email protected]:appname.git (fetch)
// heroku [email protected]:appname.git (push)
So, lets rename that default heroku
git remote to a staging, production one.