$ git svn clone -s http://a_repo local_dir ( by default this brings me r1 ) to hdd
Initialized empty Git repository in d:/Temp/local_dir/.git/
r1 = some_SHA (refs/remotes/trunk)
$ cd local_dir
$ git svn rebase
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions
log --no-color --no-decorate --first-parent --pretty=medium HEAD: command returned error: 128
我该如何实际检出仓库?
我也尝试过不使用变基,而是使用fetch
,但它每次只能带来一个版本。我们有几千个提交,按照这种速度,复制存储库需要数天时间。
git svn clone
只带来了一个版本?你使用了-s
,你的 SVN 仓库真的是标准布局吗?通常,git svn clone
还应该创建一个工作副本。 - eckes