This document assumes that you already have an existing project git repo and now want to add OpenShift for deployment.
You should also have installed and setup the rhc tool by OpenShift and created an application on the OpenShift platform.
Get ssh git adress from the OpenShift Dashboard/Application. Then add from root of repo folder a new remote to git repo.
git remote add openshift <openshift-git-repo-url>Create a new git branch for staging/preparing for deployment.
git checkout -b openshift-b-option creates new branch and checksout/switches to it.
We checkout to the openshift branch and merge/update it according to the master branch and then push it to the OpenShift platform.
git checkout openshift
git merge --no-ff masterYou may now change stuff that needs to be changed for deployment and that commit it.
git push openshift HEAD:master -f--no-ff ensures that we can see that the merge was done from and to this branch in visulization afterwards.
-f forces all changes and avoids merge conflicts.