开发者

Migration from svn to git: How do I create .gitignore files for a big repository with an unstable connection?

开发者 https://www.devze.com 2023-01-31 21:09 出处:网络
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 s

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 a file:/// 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消