$ 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
Run Code Online (Sandbox Code Playgroud)
我怎样才能真正结帐回购?
我也试过没有变形,使用fetch,但它一次只带一个修订版.我们有几千次提交,按照这个速度,复制存储库需要几天时间.
如果你只从SVN仓库中获得一次提交,我认为SVN仓库不是标准布局,但你知道git svn它是.
git svn clone http://a_repo local_dir
Run Code Online (Sandbox Code Playgroud)
(即没有-s标志)应该能够克隆SVN repo.如果这样做,请重试克隆并指定您的主干,标签和分支目录,如git-svn的文档中所述.
| 归档时间: |
|
| 查看次数: |
7325 次 |
| 最近记录: |