In my project .git/modules folder got deleted. Now I am able to reset the parent branch to other versions but submodule update is not working.
Error I am receiving:
fatal: Not a git repository: ../.git/modules/abc.
Unable to find current revision in submodule path 'abc'
How can I recover the deleted folder and bring back the submodule in line with parent branch.
Repo structure is like this:
parent_folder---|---abc
|---def
abc and def are submodules.