gpt4 book ai didi

git 'failed to read object' 和 'unable to find' 错误

转载 作者:太空狗 更新时间:2023-10-29 13:56:30 25 4
gpt4 key购买 nike

出于某种原因,我突然收到几个月前发生的 merge 的提交错误?使用 Gitolite 推送到中央服务器,并在本地使用 git 流扩展。错误是:

推送:

fatal: failed to read object 02a261fad3eae408b04d1941334875d73ddd3f57: Permission denied
error: unpack failed: unpack-objects abnormal exit

而且我无法在本地或服务器上找到该对象

pull :

error: unable to find 379d1971a1037a97919ce37342ee7a60fc611946
error: unable to find 6e41daf37591c88c8dc18f2ecc8761e7d44a0cd9
error: unable to find 0995f5098e0a96f642c6730231d997dd6e074697

好的,尝试一个新的 git 克隆怎么样:

error: unable to find 379d1971a1037a97919ce37342ee7a60fc611946
error: unable to find 6e41daf37591c88c8dc18f2ecc8761e7d44a0cd9
error: unable to find 0995f5098e0a96f642c6730231d997dd6e074697
error: git upload-pack: git-pack-objects died with error.
fatal: git upload-pack: aborting due to possible repository corruption on the remote side.
remote: fatal: failed to read object 6e41daf37591c88c8dc18f2ecc8761e7d44a0cd9: Permission denied
remote: aborting due to possible repository corruption on the remote side.
fatal: early EOF
fatal: index-pack failed

知道是什么原因导致出现这些错误吗?或者更重要的是如何撤销它们?

编辑:同样在提交 6e41daf37 之后,我做了一个“git flow feature start blah”并提交了现有的更改而不是破坏开发。该功能在本地而非 Gitolite 服务器上可能存在问题?在任何情况下,我都不能“功能发布”,因为它给出了上面发布的“解包失败以读取对象 02a261fad3”错误

最佳答案

我也是这样。似乎某些文件在服务器上的存储库中获得了错误的权限。遵循两个命令就可以了:

cd /path/to/gitolite
chown -R git *

关于git 'failed to read object' 和 'unable to find' 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14129341/

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