git-svn clone checkout错误的回购? [英] git-svn clone checkouts wrong repo?
问题描述
所以我试图通过使用git-svn切换到git.我有一个名为 myrepo 的svn存储库,我想从其中克隆一个名为 myproject 的项目.问题是通过运行以下命令:
So I am trying to switch to git, by using git-svn. I am having a svn repo called myrepo from which I want to clone just the project called myproject. The thing is that by running the following command:
git svn clone path-to-repo/myrepo/myproject --stdlayout --prefix=svn myproject
克隆整个仓库 myrepo ,而不仅仅是克隆myproject.我也尝试使用-T,-t,-b来让git知道项目的布局,但是没有成功.我总是得到以下输出:
the whole repo myrepo is cloned rather than just myproject. I tried using -T, -t, -b as well to let git know about the layout of the project, but without any success. I always get the following output:
Using higher level of URL: path-to-repo/myrepo/myproject => path-to-repo/myrepo
并尝试克隆那个.难道我做错了什么?可能是svn repo布局损坏或git不兼容吗?
and tries to clone that one. Am I doing something wrong? It might be that the svn repo layout could be broken or git incompatible ?
推荐答案
同时,我使用了普通的-s
开关:
Meanwhile, I got it working with the usual -s
switch:
git svn clone -s <svn_repo_url>
我也想分享一些git-svn引用:
I also have a few git-svn references that I want to share:
- http://justaddwater.dk/2009 /03/09/using-git-for-svn-repositories-workflow/
- http://www.viget.com/extend/effectively -using-git-with-subversion/
- http://utsl.gen.nz/talks/git-svn/intro.html
- http://trac.parrot.org/parrot/wiki/git- svn-tutorial
- http://justaddwater.dk/2009/03/09/using-git-for-svn-repositories-workflow/
- http://www.viget.com/extend/effectively-using-git-with-subversion/
- http://utsl.gen.nz/talks/git-svn/intro.html
- http://trac.parrot.org/parrot/wiki/git-svn-tutorial
这篇关于git-svn clone checkout错误的回购?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!