-
In your application page inside openshift, in the right side you'll see a section called "Source Code", copy the url.
-
In your console (in the folder you want to have the source code), execute:
git clone <SOURCE_CODE_URL>
-
And your done, now you have your page's code locally.
-
Remove git history and re-init the repo:
rm -rf .git git init git commit -m "init commit"
-
Now you are the original commit of your wordpress app, you can check that with:
git log
-
Change the git remote url:
git remote add rhc <SOURCE_CODE_URL> git push -f rhc master:master # (I called "rhc" just because that's the name of the openshift gem)
-
And your done, now locally and in your git repo inside openshift, you are the committer of your wordpress app.
Source - OpenShift Online: Using the Git Repository.
*** If you want to know more, you should read this post from TutsPlus, way better than mine ;).