How to un-submodule a Git submodule? - Stack Overflow

PHOTO EMBED

Sat Jun 11 2022 17:51:45 GMT+0000 (Coordinated Universal Time)

Saved by @richard

git rm --cached submodule_path # delete reference to submodule HEAD (no trailing slash)
git rm .gitmodules             # if you have more than one submodules,
                               # you need to edit this file instead of deleting!
rm -rf submodule_path/.git     # make sure you have backup!!
git add submodule_path         # will add files instead of commit reference
git commit -m "remove submodule"
content_copyCOPY

https://stackoverflow.com/questions/1759587/how-to-un-submodule-a-git-submodule