Git Svn Clone初始化repo,但git repo为空

时间:2015-12-04 14:53:51

标签: git version-control migration tortoisesvn

因此,我一直在尝试将我公司的CVS和SVN存储库迁移到Git,用于我们的现代系统。所以我用以下格式创建了作者文件:

last_fi = FirstInitial LastName <firstinitial.lastname@company.com>

从那里,我应该能够运行这个命令:

git svn clone -s --authors-file=authors.txt "https://company.svnrepo.path/repoparent/repo" gitreponame --prefix=svn/

然而,当这样做时,我得到了这个:

Initialized empty Git repository in c:/checkout/git/Suite/.git/ Using higher level of URL: https://company.svnrepo.path/repoparent/repo => https://company.svnrepo.path/repoparent W: Ignoring error from SVN, path probably does not exist: (160013): Filesystem has no item: REPORT request failed on '/svnfolder/middir/!svn/bc/100': File not found: revision 100, path '/repoparent' W: Do not be alarmed at the above message git-svn is just searching aggressively for old history. This may take a while on large repositories C:\checkout\git> 3048

它通过当前版本(r3048)检查r100并初始化git repo,但是没有master,没有HEAD和没有提交。我没有初始git init文件夹和文件之外的工作目录。

为了向前迈进,我一直在尝试各种奇怪和奇怪的事情,我完全被难倒了。我想我已经看了太长时间而且我遗漏了一些基本的东西。但如果有人能提供帮助,我们将不胜感激。

1 个答案:

答案 0 :(得分:1)

所以很多合作和一些运气都找到了解决这个问题的方法。事实证明,远程SVN服务器的路径区分大小写,而命令的大多数其他方面则不区分大小写。当我输入repoparent时,它应该是RepoParent。这似乎是一个愚蠢的错误,但我希望它可以帮助其他人!