问题出现的原因大概是这样的:我在公司的 gitLab 上创建了一个 merge request ,因为有 merge conflict 冲突,所以就用 gitlab 网页版解决冲突的工具解决了。然后我想把最新的 code 拉回到本地继续工作,然后问题就发生了。每次不管我执行'git fetch'还是‘ git pull ’,总是报错:
remote: Counting objects: 84, done.
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: Compressing objects: 100% (80/80), done.
remote: fatal: unable to read 524bb9cd035c68aa4fdd684cc6be390ea3d324c2
remote: aborting due to possible repository corruption on the remote side.
fatal: protocol error: bad pack header
google 了很久,看到 stack overflow 上大部分要不通过改 pack 设置来解决,要不就是执行‘ git fsck ’,但是对我这个都不起作用。
更奇怪的是,我现在重新 git clone 到本地都会报同样的错误...
Come on, guys, save my life!!!