I have set up multiple heroku instances for the same repository, as outlined here. As recommended, each heroku instance corresponds to a different remote (staging, production, etc.). My challenge is that several members of our team will be deploying. However, the heroku remotes only exist in my local git after I’ve set them up with heroku. What is the best way for other team members’ git clones of the repository to also be aware of the heroku remotes so they can also push to them for deployments? We use a gitolite (similar to a private github) server for a central git repository and push and pull changes from that.
I have set up multiple heroku instances for the same repository, as outlined here
Share
How about they set up a git remote for each app? eg.
The
heroku createyou used to create those apps, creates the app on Heroku’s side, but also created a git remote for you on your side. For example, if you did this, you’d see your remotes: