3
Git存储库已损坏(错误的头检查;松散的对象已损坏)
我昨天晚上在写提交消息时遇到了电源故障。当我启动计算机备份时,我无法完成提交。我跑了git reset,重新添加了更改的文件,然后再次尝试,得到了: % git commit error: inflate: data stream error (incorrect header check) error: unable to unpack a94406345ac44982b00cf57b4b9660a35436637f header fatal: a94406345ac44982b00cf57b4b9660a35436637f is not a valid object git fsck 显示以下内容: % git fsck --full Checking object directories: 100% (256/256), done. error: inflate: data stream error (incorrect header check) error: unable to …