Link Search Menu Expand Document

Operation must be in a work tree


fatal: this operation must be run in a work tree

This error below happend when somehow the git is as a bare and no working tree.

Run this and it will fix the issue

git config --unset core.bare