我如何使用“git-svn”结帐本地svn存储库? [英] How can I use "git-svn" to checkout a local svn repository?

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

问题描述



我在我的电脑上创建了一个svn仓库,位于/ Users / name / svnRepo / test。我可以使用svn命令来处理这个仓库。

然后,我尝试使用命令git-svn clone FILE:/// Users / name / svnRepo / test /。,并且出现错误:

已初始化的空Git存储库位于...
Bad传递给RA层的URL:无法打开到URL的ra_local会话:本地URL'FILE:/// Users / name / svnRepo / test'在/ usr / local / git / libexec中不包含'file://'前缀/ git-core / git-svn line 1775



任何人都可以帮忙吗?

解决方案

URL的Scheme部分区分大小写。尝试使用git-svn clone file:// / Users / name / svnRepo / test /。命令。


I'm practicing how to use svn and git.

I created a svn repository on my computer, at "/Users/name/svnRepo/test". I am able to use the svn commands to work on this repository.

Then, I tried to use command "git-svn clone FILE:///Users/name/svnRepo/test/ .", and got an error:

Initialized empty Git repository in ... Bad URL passed to RA layer: Unable to open an ra_local session to URL: Local URL 'FILE:///Users/name/svnRepo/test' does not contain 'file://' prefix at /usr/local/git/libexec/git-core/git-svn line 1775

Could anyone help?

解决方案

Scheme part of URL is case-sensitive. Try to use "git-svn clone file:///Users/name/svnRepo/test/ ." command.

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

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