I was trying to remove one sub-module from the project
Tried rm -rf .git/modules/submodulePath
After that I am having the issue
You simply can update the .git file
nano {my submodule}/.git
with the right gitdir.
Because i think you change the path of your folder