I will be having two git repositories:
Github
OpenShift
Both are going to have the same content. I just have to make sure they are in sync.
I currently have my origin renamed to github so that by doing git push github master, I push to github and for openshift I am planning to have a remote openshift that points to openshift git repository.
This way I can push codes separately:
git push github mastergit push openshift master
Currently after running git remote -v I get:
$ git remote -v
github https://github.com/animesh/asdf.git (fetch)
github https://github.com/animesh/asdf.git (push)
github ssh://xxxxx@asdf-animesh.rhcloud.com/~/git/asdf.git (push)
I added an upstream path to the openshift repo so that as soon as I push in github, the content is also pushed into openshift repo but I am finding it hard to manage.
How can I maintain two remotes in the way I want to?