简体   繁体   中英

Migrating SVN repository to Git

I'm migrating from SVN repository to Git, basically following this steps:

  1. git svn init [URL] --no-metadata
  2. git svn fetch

When I tested the migrate process, I used this URL http://teach-me.googlecode.com/svn/trunk/ , it has about 270 commits. But, when I tried migrate the SVN repo, with 6 months old and 800 commits; of client company, it returned an error. I'm using Git 1.9.4 on Windows, SNV on Windows too. Someone had this problem too?

在此处输入图片说明

http://randomallsorts.blogspot.com/2011/10/using-git-svn-with-large-repository.html似乎有很好的答案:“我们需要分批加载。gitfetch具有-r选项,允许您指定要获取的修订版本范围。我们有一些大文件,因此我们一次只能做10个。”

git svn clone https://[redacted]m:8443 --stdlayout -r1:2

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM