Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

There is any way to synchronize GIT and Subversion repositories?

I want to access a repository using both GIT and SVN clients. A way I imagined to do that is through automatic two-way migration: when a user PUSHes into the GIT repository, it is also COMMITed in the SVN repository and vice-versa.

There is any tool that would help me to do that?

like image 491
Jader Dias Avatar asked May 25 '09 20:05

Jader Dias


People also ask

Can you use git and SVN together?

git-svn is a specialized tool for Git users to interact with Git repositories. It works by providing a Git frontend to an SVN backend. With git-svn, you use Git commands on the local repository, so it's just like using normal Git. However, behind the scenes, the relevant SVN commands are sent to the server.


2 Answers

The best way to do this is to use git svn as a Subversion client. This provides two-way integration between a Subversion repository and a Git repository. Once you have a Git repository, you can push that anywhere else to publish it.

I do this regularly, at work there is a Subversion repository that is the "master" repository, and I usually use git svn to access it. Sometimes if I'm doing things that need more specific Subversion functionality like merging, I'll use the regular svn client against the repository instead.

like image 156
Greg Hewgill Avatar answered Sep 20 '22 02:09

Greg Hewgill


There's a new solution that performs exactly what you want --- SubGit. It is concurrent-safe (I can't say the same about git-svn-based bash scripts).

like image 23
Dmitry Pavlenko Avatar answered Sep 23 '22 02:09

Dmitry Pavlenko