Exporting a subversion repository from a git repository using github
Ok, so, you want to quick-and-easily export your git repository as a subversion repository, the answer is pretty straightforward: Use github as an intermediary.
For it, you first will need to configure a github account and create a repository, that’s not the object of this article so you might want to dig up a little over the google seas. For this example, repository FooBar will be used, and repo.foobar.com will be the origin git.
First, we go to our own repo’s directory (a clone of your current repository’s), and add github proyect as remote, like this:
|1 2 3 4||
Luckily, github exports automatically all its git repos as subversion, so, right now, you’re already able to execute:
svn co http://github.com/XayOn/FooBar
And there you have it, your git repo, exported as subversion, just keep the github repo updated with
git remote push github <branch>