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
These two files contains absolute submodule path:
{submodule}/.git
.git/modules/{submodule}/config
So, if you moved the repo, the absolute path in these two files are not valid, and cause the 'not a git repository' error. Just fix these files manually.
Former versions of git used an absolute path to locate the gitdir of a submodule. The solution is as follows:
rm -rf broken_submodule_folder
git submodule update
. You should see the submodules being checked out.