Skip to content

Instantly share code, notes, and snippets.

View avtaniket's full-sized avatar

aniket takarkhede avtaniket

  • India
View GitHub Profile
@avtaniket
avtaniket / heroku_multiple_remotes_multiple_branches
Created February 22, 2021 06:25 — forked from amratab/heroku_multiple_remotes_multiple_branches
Adding multiple heroku apps to a single repository different branches
Suppose you have two heroku remote apps
myapp-dev & myapp-prod
and two git branches
master(for dev) & production
Now lets setup heroku on the existing git repo in your local machine
Assuming the branches and the apps exist already
git remote add heroku-myapp-dev https://git.heroku.com/myapp-dev.git
git remote add heroku-myapp-prod https://git.heroku.com/myapp-prod.git