git - 我如何克隆本地svn存储库? [英] git - how can I clone local svn repository?
问题描述
换句话说 - 应该在
中使用URL作为参数> git svn克隆网址
当svn repository是本地的吗?
您应该可以像这样成功:
git svn克隆文件:/// e / svn_repo_on_E_drive
与svn checkout命令类似:
svn co file:/// e / svn_repo_on_E_drive
file://
用于当前驱动器上的文件夹正在执行CMD提示符, file:/// d / some_folder
用于 D:\some_folder
。
注意:额外的 /
以及Windows上文件链接中已删除的驱动器冒号。 文件:// E:/ svn_repo_on_E_drive
文件:/// E / svn_repo_on_E_drive
I am completely unable to find any explanation how I should specify location of existing svn repository.
In other words - what should be used as URL in
git svn clone URL
when svn repository is local?
You should be able to succeed like this:
git svn clone file:///e/svn_repo_on_E_drive
Similar to svn checkout command:
svn co file:///e/svn_repo_on_E_drive
file://
for folder on the current drive of the executing CMD prompt, file:///d/some_folder
for D:\some_folder
.
Note: The extra /
and the removed drive colon in the file link on Windows. file://e:/svn_repo_on_E_drive
→ file:///e/svn_repo_on_E_drive
这篇关于git - 我如何克隆本地svn存储库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!