Created
May 1, 2020 03:02
-
-
Save erockdotdev/06703e7000538bb66dd9d35fe09718eb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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