I got this error while executing git commands in a repo.
fatal: This operation must be run in a work tree
Also being asked: fatal: This operation must be run in a work tree
I got this error while executing git commands in a repo.
fatal: This operation must be run in a work tree
Also being asked: fatal: This operation must be run in a work tree
I found that that my core.bare flag is set as true. Setting it to false, resolves the issue
git config core.bare false