Set up remotes for staging and production apps
Official docs found here: https://devcenter.heroku.com/articles/git#creating-a-heroku-remote
If you haven't created the heroku apps yet, you can create them and name the remotes simultaneously. I documented this here
Connect your git repo to an existing Heroku app
If you have already created your Heroku app, you can easily add a remote to your local repository with the heroku git:remote command. All you need is your Heroku app’s name:
heroku git:remote -a app-name
set git remote heroku to https://git.heroku.com/app-name.gitCheck which remotes you've already set up and what their names are
git remoteRename your remotes 'staging' and 'production'
By default, heroku names the remote heroku. you'll want to rename this to staging or production
git remote rename heroku stagingLast updated