No submodule mapping found in .gitmodule for a path that’s not a submodule

No submodule mapping found in .gitmodules for path ‘OtherLibrary/MKStore’
when

$ git submodule update --init

I didn’t know why the error occur. After spending a minute and found the answer in stackoverflow.

$ git rm --cached OtherLibrary/MKStore

and then update the submodule again. It’s working fine.

http://en.saturngod.net/no-submodule-mapping-found-in-gitmodules

Leave a Comment