How to clone from a local shared repsoitory using git svn

心已入冬 提交于 2021-01-27 18:55:22

问题


Perhaps this is trivial or has been asked many times, but I was not able to make it work: I want to git svn clone a svn repo which is on a local drive (mounted as I: on Windows). But it does not work. From git bash I ran (on 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>
                     ...

Using Windows' cmd and net use I found I: = \\mydomain.ch\data$ and ran

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.

Any ideas, how to clone such a repo?

来源:https://stackoverflow.com/questions/62776408/how-to-clone-from-a-local-shared-repsoitory-using-git-svn

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!