gpt4 book ai didi

混帐致命 : SHA1 COLLISION FOUND

转载 作者:IT王子 更新时间:2023-10-29 01:18:17 27 4
gpt4 key购买 nike

我似乎有一个损坏的存储库,我不知道如何修复...

$ git pull
remote: Counting objects: 141, done.
remote: Compressing objects: 100% (90/90), done.
error: unable to unpack ff7fca002656ad848c44bf134088d638a01d5217 header
error: inflateEnd: stream consistency error (no message)
fatal: SHA1 COLLISION FOUND WITH ff7fca002656ad848c44bf134088d638a01d5217 !
fatal: index-pack failed
Unable to write to standard output: The pipe is being closed.

这是 fsck 的输出:

$ git fsck
error: unable to unpack 024e257c1a13532e7d5579b0ea4bb5915d21e4a6 header
error: inflateEnd: stream consistency error (no message)
fatal: loose object 024e257c1a13532e7d5579b0ea4bb5915d21e4a6 (stored in super/sectet/path/to/repo/.git/objects/02/4e257c1a13532e7d5579b0ea4bb5915d21e4a6) is corrupt

关于如何处理这个问题有什么想法吗?我基本上想要获取远程中的任何内容,然后将我的少量提交推送到它之上。

最佳答案

我遇到了同样的问题并运行:

git prune
git gc

其中提到:

error: bad ref for refs/remotes/origin/ticketName

所以我删除了引用并解决了问题:

rm .git/refs/remotes/origin/ticketName

关于混帐致命 : SHA1 COLLISION FOUND,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23964033/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com