git - 我如何克隆本地svn存储库? [英] git - how can I clone local svn repository?

查看:248
本文介绍了git - 我如何克隆本地svn存储库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



换句话说 - 应该在

中使用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_drivefile:///e/svn_repo_on_E_drive

这篇关于git - 我如何克隆本地svn存储库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆