1. Delete the Submodule cache

Fatal: Please stage your changes to. GitModules or stash them to proceed

git add .gitmodules
git rm --cached submodule_name

2. Delete the submodule directory

rm -rf submodule_name

3. Modify. Gitmodules

Remove the corresponding submodule information, only 1 submodule information can delete the file.

4. .git/modules

Remove the corresponding SubModule directory

5. .git/config

Remove the corresponding SubModule information