-2

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

1 Answers1

-2

I found that that my core.bare flag is set as true. Setting it to false, resolves the issue

git config core.bare false