Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Storing a repository in subversion and git

Tags:

git

svn

migration

I'm currently trying to convince my company to migrate to git from subversion, and one thing that would be really helpful would be to allow me to store a repository in subversion and git at the same time (then I can show them how easy it is to do in git what they've spent an hour trying to do in subversion). I guess that I could put my subversion repository straight into git, but this seems to leave loads of .svn artifacts in each directory. Does anyone know if there's a way to avoid this?

like image 469
Ceilingfish Avatar asked Feb 15 '26 14:02

Ceilingfish


1 Answers

Using git-svn might be your best choice at the moment - it's a bidirectional interface between git and Subversion. You create a git repository that is essentially a Subversion working copy. There are caveats though - you shouldn't clone that repository or do push/pulls from it. See the relevant manpage.

I would recommend having a pilot project that you switch from Subversion to git, instead of trying to do both Subversion and git at the same time on the same code. I worry about using git-svn as a stepping stone, because any problems with getting them to interoperate will likely be used to scuttle the whole git idea.

There's plenty of commentary about how/why to move from Subversion to some DVCS. Here's one I like:

http://joelonsoftware.com/items/2010/03/17.html

like image 158
David M Avatar answered Feb 18 '26 07:02

David M