I've got many Git repositories cloned via Sourcetree on Windows. One particular repository works properly (I can commit, push, and pull, etc.) except that its Git directory is completely bare and gives me errors about git status
not working. All my other (many) repositories are working fully.
The error message in SourceTree is:
'git status' failed with error code 128: fatal: this operation must be run in a work tree
(C:\{full path to directory})
The error message from running git status
in the same directory (which is completely empty) is:
C:\{full path to directory}>git status fatal: this operation must be run in a work tree
How do I find out where Sourcetree is referencing this particular Git repository so I can move it to the correct location or otherwise fix the git status
error?