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
3 answers ( 1 marked as helpful)
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
I don't think the previous answer is helpful. I came across it in my Google search.
I got the same error and basically what I did was to type: cd .. which took me to master...
Hey Segun!
Thanks for sharing this!
Best,
Ivan