How to Reset All Git Submodules
Git submodules let you keep a Git repository as a subdirectory of another Git repository. When they get into a bad state—detached HEAD, local changes, merge conflicts—you need a clean reset. The complete deinit and reinit method This is the most thorough approach. It removes all submodule state and rebuilds from scratch: git submodule deinit…
