首页 > 解决方案 > 如何使用 git svn 从本地共享存储库克隆

问题描述

也许这是微不足道的或已被多次询问,但我无法使其工作:我想要git svn clone一个位于本地驱动器上的 svn 存储库(安装为 I:在 Windows 上)。但它不起作用。从 git bash 我跑(在 Windows 上):

git svn clone "i/path/2folder/Subversion"

Initialized empty Git repository in C:/myLocalFolder/.git/
Bad URL passed to RA layer: Illegal repository URL 'i/path/2folder/Subversion' at /mingw64/share/perl5/site_perl/Git/SVN.pm line 148.

git svn clone -HTTP "I:/path/2folder/Subversion"

git-svn - bidirectional operations between a single Subversion tree and git
usage: git svn <command> [options] [arguments]

  clone            Initialize and fetch revisions
                     --add-author-from
                     --authors-file, -A <arg>
                     ...

使用 Windows' cmdnet use我发现I: = \\mydomain.ch\data$并运行

git svn clone "git://mydomain.ch/data$/path/2folder/Subversion"

Initialized empty Git repository in myfolder/.git/
Bad URL passed to RA layer: Unrecognized URL scheme for 'git://mydomain.ch/data$/path/2folder/Subversion' at /mingw64/share/perl5/site_perl/Git/SVN.pm line 148.

任何想法,如何克隆这样的回购?

标签: gitsvn

解决方案


推荐阅读