OpenShift uses GIT for the internal repo, however, you might have existing projects which are on SVN which you want to deploy into OpenShift but yet to have chance to migrate it to GIT (or for some reason, couldn't). So how do you approach this?.
The simplest trick around is, to have a GIT+SVN combined directory to work on. Here's the quick steps:
- Checkout/clone both the project SVN and OpenShift GIT repository into 2 separate directories.
- Copy .git directory from OpenShift GIT clone into the SVN checkout directory.
This will setup a directory which can be committed to both GIT and SVN. Whenever you want to deploy the code to OpenShift, git commit and git push it. Whenever you want to save the code into the code repository, svn commit it.