Close

Fix “Fatal Error: Git not found” corruption

Weird issue happening. A perfectly fine git repository suddenly stopped being detected by git. When I do, git status, no git repository is found even tough I can see .git (hidden) folder.

To fix this, I ran below commands

git init
git remote add origin  https://github.com/skumarlabs/MB-Lab.git
git fetch
git reset origin/master --mixed

Leave a Reply

Your email address will not be published. Required fields are marked *