当我尝试从服务器提取最新代码时出现此错误:
Fetch failed
error: inflate: data stream error (unknown compression method)
error: unable to unpack bd808e4d3216bcf22641e082379db122859b367b header
fatal: SHA1 COLLISION FOUND WITH bd808e4d3216bcf22641e082379db122859b367b !
fatal: index-pack failed
答案 0 :(得分:0)
首先检查问题是否仍然存在:
然后,在" git fatal: SHA1 COLLISION FOUND"之后,尝试:
git prune
git gc
(查看是否弹出任何错误信息)
如果您有更改,可以轻松地将它们集成回新克隆:
git clone /url/repo newfolder
cd newfolder
git --work-tree=/path/to/old/folder add .
git commit -m "import work in progress"