首次推送后SHA1校验和不匹配

时间:2014-06-18 15:34:27

标签: git corruption

我正面临着一个令人沮丧的案例:我有一个本地的git repo(有几个分支)。运行git fsck一切看起来都不错。现在,我需要将其推送到服务器以便从其他计算机上获取。所以,在我的服务器上运行git --bare init repo(请注意,在这个服务器中,我有其他git repos工作正常)。

然后,在本地服务器上git remote add origin ...&& git push --all将所有内容推送到远程服务器。 现在,当我回到远程服务器并执行:

git fsck --full

我明白了:

[tsif@server myproject.git]$ git fsck --full
error: ./objects/pack/pack-c4f663419de286d46fa66f69cbb8118cb965ecb9.pack SHA1 checksum mismatch
error: inflate: data stream error (incorrect data check)
error: cannot unpack 9056828a04daaded875fbfaa106cf3e2305fe386 from ./objects/pack/pack-c4f663419de286d46fa66f69cbb8118cb965ecb9.pack at offset 596841
error: inflate: data stream error (invalid distance code)
error: failed to read delta base object d0b8bbbc070eb59e661dcd0a7a1cd314fe4e0ce2 at offset 4072464 from ./objects/pack/pack-c4f663419de286d46fa66f69cbb8118cb965ecb9.pack
error: failed to read delta base object 65a9f2818dc63467a396f6fdc223e0a5499b78f4 at offset 4073883 from ./objects/pack/pack-c4f663419de286d46fa66f69cbb8118cb965ecb9.pack
error: failed to read object 2eff30e60b36a0ad37dbb10725466dc139c2d972 at offset 4239713 from ./objects/pack/pack-c4f663419de286d46fa66f69cbb8118cb965ecb9.pack
fatal: object 2eff30e60b36a0ad37dbb10725466dc139c2d972 is corrupted
[tsif@server myproject.git]$

我多次尝试重新创建远程分支,但我总是以损坏的分支结束。有什么想法吗?

谢谢

0 个答案:

没有答案