我正在按照以下步骤将svn仓库转移到git:
http://git-scm.com/book/en/v2/Git-and-Other-Systems-Git-as-a-Client。
我的本地svn版本是:
根据svn发布说明,svn 1.8引入了FS格式6: http://subversion.apache.org/docs/release-notes/1.8.html#revprop-packing 可能git 2.1 Perl脚本还不兼容这个svn版本。更重要的是,我该如何将这个svn存储库转换为git?
$ svn --version
svn,版本1.8.10(r1615264)
编译于2014年8月25日10:52:18,位于x86_64-apple-darwin12.5.0上。
git版本是:
$ git --version
git版本为2.1.0
当我克隆该仓库时,会出现读取本地文件系统格式错误的提示。$ git svn clone file:///tmp/test-svn -s
Initialized empty Git repository in /private/tmp/test-svn/.git/
Couldn't open a repository: Unable to connect to a repository at URL 'file:///tmp/test-svn': Unable to open an ra_local session to URL: Unable to open repository 'file:///tmp/test-svn': Expected FS format between '1' and '4'; found format '6' at /usr/local/Cellar/git/2.1.0/lib/perl5/site_perl/Git/SVN.pm line 310
根据svn发布说明,svn 1.8引入了FS格式6: http://subversion.apache.org/docs/release-notes/1.8.html#revprop-packing 可能git 2.1 Perl脚本还不兼容这个svn版本。更重要的是,我该如何将这个svn存储库转换为git?