小弧光的博客

公众号:小弧光黑板报

导航

解决git 问题:loose object is corrupt

问题:

error: object file .git/objects/e1/ref is empty
error: object file .git/objects/e1/ref is empty
fatal: loose object e1ref (stored in .git/objects/e1/ref) is corrupt

解决方式:

find .git/objects/ -size 0 -exec rm -f {} \;
git fetch origin

 

参考:https://accio.github.io/programming/2021/06/16/fix-loose-objects-in-git.html

posted on 2023-09-18 11:50  小弧光  阅读(121)  评论(0编辑  收藏  举报