Resolved: Error, fatal: this operation must be run in a work tree
I'm getting this error when checking the status and adding the test file to git. please help
1 answers ( 1 marked as helpful)
Ivan Manov
Instructor
Hi Manogna!
Thanks for reaching out.
This error message appears when you run git in a directory that is not a working tree. Make sure you are in your project directory and not inside .git when executing the add
command.
Hope this helps.
Best,
Ivan