Thread (7 messages) flat view 7 messages, 6 authors, 2016-06-15

Re: Migrating a git repository to subversion

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2016-06-15 22:44:37


On Thu, 15 May 2008, Alf Mikula wrote:
Having said that, I want to demonstrate git's git<--->svn
capabilities, and currently everybody here has and understands
Subversion.  So, I want to initialize a Subversion repository with my
git history from my local git repository.  Here's what I tried:
Hmm. I don't think there is any git2svn thing, but if your history is 
linear (which is really the only thing SVN can handle, since SVN doesn't 
really do "merges" in the git sense at all), you could just write some 
silly script to extract the patches one by one and commit them using SVN.

Or use "tailor", which should be able to convert from pretty much anything 
into pretty much anything (again, assuming it's linear).

Or, and this gets extra points for being disgusting, use "git-cvsserver" 
to serve a remote CVS repo, then cvssuck to create a local CVS repo out of 
it, and then do cvs2svn to create a SVN repo. Ta-daa!

(Ok, that last one really is too ugly to live, but if it works, it really 
sounds like the true rube-goldberg way to do it, and should be done just 
because it is there, to paraphrase George Mallory).

			Linus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help