tags:

views:

75

answers:

3
+2  Q: 

Mirror git to svn

I have a primary git repository for an opensource project

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

A: 

Have you checked out http://www.kernel.org/pub/software/scm/git/docs/git-svn.html I don't know if this will solve your problem or not, but it is a way to sync git and svn.

-CJ

Johnsonch
+1  A: 

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.

Autocracy
+2  A: 

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).

Daniel