When I run git status on my repo I get fatal: Not a git repository: /my repo/.git/modules/docs
I\'ve checked and .git exists and contains HEAD with the
I was facing this issue with submodules as well, but after analyzing the two files
{submodule}/.git .git/modules/submodules/{submodule}/config
I realized that in my case this was not an issue.
After a little research I have found that in my case I had to add the git (command : module add git) and the error disappeared.