我们目前正在从ClearCase迁移到Git,我们在尝试克隆我们创建的Git存储库时遇到了问题。
存储库是使用1.9.x版本的Git创建的,但我试图用git版本2.9.2.windows.1克隆它们。显然,创建存储库的人设法用旧版本的Git克隆它们。
运行git clone时,我看到的错误如下:
$ git clone /d/Users/T0111869/Desktop/migr_SRC/history/COM_CORE
Cloning into 'COM_CORE'...
done.
error: inflate: data stream error (incorrect header check)
fatal: failed to read object b7ed8076ca4334f1d7337ac81a00d6fe7c2e793b: Invalid argument
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'
如果我尝试错误消息的建议,我明白了:
$ git status
error: inflate: data stream error (incorrect header check)
error: unable to unpack fb43c36b2de8ccab73a648a25ab5735406e1b595 header
error: inflate: data stream error (incorrect header check)
fatal: loose object fb43c36b2de8ccab73a648a25ab5735406e1b595 (stored in .git/objects/fb/43c36b2de8ccab73a648a25ab5735406e1b595) is corrupt
和
$ git checkout -f HEAD
error: inflate: data stream error (incorrect header check)
error: unable to unpack fb43c36b2de8ccab73a648a25ab5735406e1b595 header
error: inflate: data stream error (incorrect header check)
fatal: loose object fb43c36b2de8ccab73a648a25ab5735406e1b595 (stored in .git/objects/fb/43c36b2de8ccab73a648a25ab5735406e1b595) is corrupt
有没有人建议如何理解发生了什么以及如何解决这个问题?
提前致谢 尼科