Kim Stacks Kim Stacks - 1 year ago 236
Git Question

No submodule mapping found in .gitmodules for path and missing .gitmodules file

When I run

git submodule init
, I get the following error:

No submodule mapping found in .gitmodules for path 'xxx'

I searched for a
file and I cannot find it anywhere.

I have read this most popular SO question on the same topic.
But unfortunately, I cannot solve the problem. Especially given that I no longer have

According to my GitHub private repo, I still have submodules for my repository. Just that I cannot find the
file anywhere.

Answer Source
  1. Ensure that there are no submodule sections in .git/config. If there are, remove them.
  2. Do git rm --cached <path_to_submodule>.
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download