github遇到的问题

[day0e]$ git commit -m "day03"
error: object file .git/objects/68/dded4d2f22acd7f1cc41236acda186c91e05ce is empty
error: object file .git/objects/68/dded4d2f22acd7f1cc41236acda186c91e05ce is empty
fatal: loose object 68dded4d2f22acd7f1cc41236acda186c91e05ce (stored in .git/objects/68/dded4d2f22acd7f1cc41236acda186c91e05ce) is corrupt

解决办法

find .git/objects/ -type f -empty | xargs rm

git fetch -p

git fsck

posted @ 2021-08-02 10:14  Teacher张  阅读(36)  评论(0编辑  收藏  举报