My git on my local machine was working well initially doing all the work adding and commiting just fine, but after i switched off my computer and got back to it again when i do "git status" or "git log" this displays:

error: object file .git/objects/c0/6ef4a52d58699bc1d3240720dfb86a7c5d87e0 is empty
error: object file .git/objects/c0/6ef4a52d58699bc1d3240720dfb86a7c5d87e0 is empty
fatal: bad object HEAD

Before switching it off i made sure to add and push all the work and changes i made and it responded just fine

I tried watching some YouTube videos that would maybe help my specific problem but i did not get the answer i needed

The last time it did this, i created another repository and moved my work there after cloning repository but this is the second time this is happening after i switch off my computer

Please...I would highly appreciate anyone willing to help me i am stuck

0

There are 0 best solutions below