解决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
转载请注明原文链接:https://www.cnblogs.com/itfanr/p/17711515.html
公众号:小弧光黑板报