$ 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
我該如何檢查回購?git svn模棱兩可的論點'HEAD'
我也嘗試過沒有重新綁定,使用fetch
,但它一次只帶來一個修訂。我們有幾千次提交,按照這個速度,複製存儲庫需要幾天的時間。
你的意思是'混帳SVN clone'帶來了一個修訂版?你正在使用'-s',你的SVN回購真的在標準佈局中嗎?通常,'git svn clone'也應該創建一個工作副本。 – eckes