I have a git repo I’ve been using for the last year on the same box. Today I run git status and get the error message:
fatal: Not a git repository (or any parent up to mount parent /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
I have a .git directory and it’s populated with the thousands of commits I have for that repo. I don’t want to re-initialize the repo in fear that it’ll overwrite the history. I also don’t really want to re-pull it from github as I’ve got a few changes stashed in branches that I haven’t pushed up to GH in a while.
edit:
I’m reasonably sure it’s not my environment. Other git repos are working just fine
I would like to post some comments from the appropriate source file of git:
Git repo discovery is done as per below:
And it ascertains that it is a git repo as below:
See what’s wrong with your
.git. This ties in with @Chris Nicola ‘s answer of theHEADbeing lowercase etc.