剔除git的submodule
删除git的submodule
- Delete the relevant section from the
.gitmodules
file. - Delete the relevant section from
.git/config
. - Run
git rm --cached path_to_submodule
(no trailing slash). - Delete the relevent folder in .git/modules.
- Delete the now untracked submodule files.