Git commit error - corrupt files

46 views
Skip to first unread message

Paeton Dhesi

unread,
Nov 25, 2020, 3:49:31 AM11/25/20
to cmpt-295-sfu

SFU ID: pdd2
Github username: pdd2
Line and file:
Expected behavior: git commit to work
Observed behavior:
error: object file .git/objects/78/01f916befcc90988662d4afbd5c9312c4de356 is empty
error: object file .git/objects/78/01f916befcc90988662d4afbd5c9312c4de356 is empty
fatal: loose object 7801f916befcc90988662d4afbd5c9312c4de356 (stored in .git/objects/78/01f916befcc90988662d4afbd5c9312c4de356) is corrupt
Question:

I'm not sure what happened. I was using git as usual, did my git add, and then I could not commit due to the error above. This error occurred with another student in the past. I have linked their post below. I tried the steps suggested there to repair my repo, but like that student, it did not work. Can I get my repo reset?


Thank you,

ashrir...@gmail.com

unread,
Nov 25, 2020, 3:55:37 AM11/25/20
to cmpt-295-sfu
Reclone; create a fresh copy. Copy over only mm.c and mm.h and try commit and pushing.

Paeton Dhesi

unread,
Nov 25, 2020, 3:21:23 PM11/25/20
to cmpt-295-sfu
That seemed to work thank you.
Reply all
Reply to author
Forward
0 new messages