Skip to content

Instantly share code, notes, and snippets.

@erockdotdev
Created May 1, 2020 03:02
Show Gist options
  • Save erockdotdev/06703e7000538bb66dd9d35fe09718eb to your computer and use it in GitHub Desktop.
Save erockdotdev/06703e7000538bb66dd9d35fe09718eb to your computer and use it in GitHub Desktop.
Add new heroku remote ( if you rename an app in heroku run this step before renaming remotes)
heroku git:remote -a [app name].
Add remote with name
heroku git:remote -a [app name] -r [remote]
exmaple: heroku git:remote -a erock-dot-dev-staging -r staging
Remove heroku remote
git remote rm [remote name]
Push non master branch to heroku environment
git push [remote] [branch]:master
example: git push staging develop:master
Notes on creating multiple environments: https://devcenter.heroku.com/articles/multiple-environments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment