Git : error: object file xxx is empty 错误修复方法
Posted sheldon_blogs
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Git : error: object file xxx is empty 错误修复方法相关的知识,希望对你有一定的参考价值。
git log发现如下错误信息:
error: object file .git/objects/20/6e7330a25fe1f1e533b5f769103e37e2a5c7f4 is empty error: object file .git/objects/20/6e7330a25fe1f1e533b5f769103e37e2a5c7f4 is empty fatal: loose object 206e7330a25fe1f1e533b5f769103e37e2a5c7f4 (stored in .git/objects/20/6e7330a25fe1f1e533b5f769103e37e2a5c7f4) is corrupt
修复指令:
find .git/objects/ -type f -empty | xargs rm git fetch -p git fsck --full
OK~
以上是关于Git : error: object file xxx is empty 错误修复方法的主要内容,如果未能解决你的问题,请参考以下文章
Git提交单个文件过大,git error: remote unpack failed:error Object too large
Git提交单个文件过大,git error: remote unpack failed:error Object too large
git 服务器同步代码错误 error: insufficient permission for adding an object to repository database .git/object
git 报错 error: insufficient permission for adding an object to repository database ./objects
git :error: bad signature fatal: index file corrupt
Git error. Command: `git ls-files --cached --exclude-standard --recurse-submodules`