由于某种原因,我突然收到几个月前发生的合并的提交错误?使用Gitolite推送到中央服务器,并在本地添加git flow扩展。错误是:
git push:
fatal: failed to read object 02a261fad3eae408b04d1941334875d73ddd3f57: Permission denied
error: unpack failed: unpack-objects abnormal exit
Run Code Online (Sandbox Code Playgroud)
而且我无法在本地或服务器上找到该对象
git pull:
error: unable to find 379d1971a1037a97919ce37342ee7a60fc611946
error: unable to find 6e41daf37591c88c8dc18f2ecc8761e7d44a0cd9
error: unable to find 0995f5098e0a96f642c6730231d997dd6e074697
Run Code Online (Sandbox Code Playgroud)
好的,尝试新鲜的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
Run Code Online (Sandbox Code Playgroud)
知道会发生什么导致这些错误出现吗?或更重要的是如何撤消它们?
编辑:同样在提交6e41daf37之后,我做了一个'git flow feature start blah'并提交了对该内容的现有更改,而不是破坏了开发。也许该功能在本地而不是Gitolite服务器上存在问题?无论如何,我无法进行“功能发布”,因为它给出了上面所述的“打开包装无法读取对象02a261fad3”错误
小智 5
我也一样。似乎某些文件在服务器上的存储库中获得了错误的权限。以下两个命令可以解决问题:
cd /path/to/gitolite
chown -R git *
Run Code Online (Sandbox Code Playgroud)