由于某些原因,我突然在几个月前发生的合并提交中遇到了错误? 使用Gitolite将其推送到中央服务器,并在本地使用Git flow扩展。 出现以下错误:
git push:
fatal: failed to read object 02a261fad3eae408b04d1941334875d73ddd3f57: Permission denied
error: unpack failed: unpack-objects abnormal exit
我无法在本地或服务器上找到该对象。
git 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”,并将现有更改提交到了该功能分支,而不是破坏develop分支。也许是功能分支在本地上存在而不在Gitolite服务器上?无论如何,我无法执行“feature publish”,因为它会出现上面发布的“unpack failed to read object 02a261fad3”错误。