0

我正在尝试使用cvs2git和将旧的 cvs 存储库迁移到 git git fast-import。导出似乎工作正常,至少我没有注意到任何错误消息。但是,当我尝试将转储文件导入我的 git 存储库时

git fast-import --export-marks=C:\temp\git-marks.dat < C:\temp\git-dump.dat

我收到以下错误:

致命:标记:52 未声明

这是生成的崩溃报告:

fast-import crash report:
    fast-import process: 17584
    parent process     : 1
    at 2019-01-09 14:52:10 +0000

fatal: mark :52 not declared

Most Recent Commands Before Crash
---------------------------------
  commit refs/heads/master
  mark :1000000000
  committer loc\drst <> 1299577179 +0000
  data 16
* M 100644 :52 build.properties

Active Branch LRU
-----------------
    active_branches = 1 cur, 5 max

  pos  clock name
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   1)      0 refs/heads/master

Inactive Branches
-----------------
refs/heads/master:
  status      : active loaded dirty
  tip commit  : 0000000000000000000000000000000000000000
  old tree    : 0000000000000000000000000000000000000000
  cur tree    : 0000000000000000000000000000000000000000
  commit clock: 0
  last pack   : 


Marks
-----
  exported to C:\temp\git-marks.dat

-------------------
END OF CRASH REPORT

那么 mark :52 是什么意思,我怎样才能找出问题所在?

4

1 回答 1

0

好的,我的错误是我显然需要导入,而不是导出以前创建的标记文件:P 以下语句似乎工作得很好:

git fast-import --import-marks=C:\temp\git-marks.dat < C:\temp\git-dump.dat
于 2019-01-10T09:16:10.933 回答