Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mirror git to svn

Tags:

git

svn

git-svn

I have a primary git repository for an opensource project

I want to mirror all commits to a svn repository (on code.google.com), is it possible ?

like image 320
Pydev UA Avatar asked Apr 23 '10 15:04

Pydev UA


2 Answers

Yes, that is possible. Use Git's SVN features to import into a repository. You can then push back from there. You'll find that for the most part, though, that git can effectively show an SVN history better than SVN can show a git history.

like image 66
Jeff Ferland Avatar answered Sep 28 '22 04:09

Jeff Ferland


If your git history is linear, you could try using git-svn. I would try using "git svn clone" to import the existing (empty) SVN repository into git, then rebase your existing git history onto that and "git svn dcommit" it.

If your git history isn't linear (contains branches and merges), you won't be able to properly represent it in SVN. In that case, I strongly suggest you use a git-based hosting solution instead (e.g. github.com).

like image 29
Daniel Avatar answered Sep 28 '22 04:09

Daniel