Sunday, January 25, 2009

Cloning a git svn clone

Looks like today with git 1.6.1 there is no default way to clone a git svn clone. The default command (git clone) does not include the original svn information, so your new clone is quiet useless.
Suggested on IRC is just to 'cp' or 'rsync' your clone with the little anoying side-effect that all non-tracked files are copied too :-/

1 comment:

Andreas Krey said...

You can clone from the git-svn repo (usefully). You just need to push modifications back there to be able to put them back to svn. That repo is more or less the sole interface between svn and all the gits.

(I also remember articles about clonable git repos as preload to make the git svn clone on big svn repos faster, but I don't know where that was.)