Shin Code log

Logs of solution for code
November 01, 2020

Fix git error file is empty

Simple way to fix git error on object file

Error: error: object file .git/objects/eb/e98fe14074fc623fcb40babd02873fd701d4a9 is empty error: object file .git/objects/eb/e98fe14074fc623fcb40babd02873fd701d4a9 is empty fatal: loose object ebe98fe14074fc623fcb40babd02873fd701d4a9 (stored in .git/objects/eb/e98fe14074fc623fcb40babd02873fd701d4a9) is corrupt ----------------------- solution: find .git/objects/ -size 0 -exec rm -f {} \; git fetch origin

Code:

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