Migration from svn to git: How do I create .gitignore files for a big repository with an unstable connection?
I've just migrated a big open source project from subversion to git.
I am trying to do a git svn create-ignore
, but after abou开发者_JAVA技巧t 30 minutes it fails because the svn server connection sometimes fails:
RA layer request failed: PROPFIND of '...': could not connect to server (...).
Now, the problem is, that if I do git svn create-ignore
again, it restarts completely over (unlike git svn fetch
which continues from where it broke). So it never gets past about 25% of the project. Is this fixable?
You could try something like this:
- First create a local mirror of the entire SVN repository with
svnsync
as described here. - Now edit the URL in your [svn-remote] section in
.git/config
to point to your local mirror (you can use afile:///
URL). - Try
git svn create-ignore
again. - Change your
.git/config
back to point to the real repository again.
Creating the local mirror will take a lot of time, bandwidth and disk space, but at least you can resume it if it is interrupted halfway.
精彩评论