I hope someone can help me.
Last week everything was ok, then yesterday I don't know what happened.
(My OS is Fedora).
I am in the directory where I have my project /app/app and I was trying to do a git status or a git pull but I get this response:
error: object file .git/objects/43/5d56e948bdc05f6c0fdcc8851bcc2559524f0a is empty
error: object file .git/objects/43/5d56e948bdc05f6c0fdcc8851bcc2559524f0a is empty
fatal: loose object 435d56e948bdc05f6c0fdcc8851bcc2559524f0a (stored in .git/objects/43/5d56e948bdc05f6c0fdcc8851bcc2559524f0a) is corrupt
I tried following this link but when I do
cp -a .git .git-old
I get
cp: cannot stat '.git': No such file or directory
So it looks like I don't have git. I removed and reinstalled it:
yum remove git
yum clean all
yum install git
but when I did git status I still got the same problem.
Does anyone has a better idea?