我如何使用“git-svn"?签出本地 svn 存储库? [英] How can I use "git-svn" to checkout a local svn repository?
问题描述
我正在练习如何使用 svn 和 git.
I'm practicing how to use svn and git.
我在我的计算机上创建了一个 svn 存储库,位于/Users/name/svnRepo/test".我可以使用 svn 命令来处理这个存储库.
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.
然后,我尝试使用命令 "git-svn clone FILE:///Users/name/svnRepo/test/.",并得到一个错误:
Then, I tried to use command "git-svn clone FILE:///Users/name/svnRepo/test/ .", and got an error:
在...中初始化空的 Git 存储库传递给 RA 层的错误 URL:无法打开到 URL 的 ra_local 会话:本地 URL 'FILE:///Users/name/svnRepo/test' 在/usr/local/git/不包含 'file://' 前缀libexec/git-core/git-svn 第 1775 行
有人可以帮忙吗?
推荐答案
URL 的方案部分区分大小写.尝试使用git-svn clone file:///Users/name/svnRepo/test/".命令.
Scheme part of URL is case-sensitive. Try to use "git-svn clone file:///Users/name/svnRepo/test/ ." command.
这篇关于我如何使用“git-svn"?签出本地 svn 存储库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!