The repo had been working fine until I tried to view the source with VS Code though NFS.
Git status and checkout work, but pretty much nothing else. I'm not able to push anything to remote, and there's a lot of local changes. How should I go about repairing the repo (hoping for not having to move diffs as last resort)? Thanks in advance!
$ git status
On branch <branch>
...
nothing to commit, working directory clean
$ git log
fatal: Not a git repository: <repo path>
$ echo $GIT_DIR
<repo root correct>
$ ll -dn $GIT_DIR/.git
drwxr-xr-x 7 <UID correct> <GID correct> 4.0K Sep 9 14:55 <repo root>/.git
git statusworks,git logshould work, and vice versa. The usual case is something getting messed up with the file named.git/HEAD, but that would breakgit statustoo.