Based on https://stackoverflow.com/questions/1260748/how-do-i-remove-a-submodule and https://stackoverflow.com/questions/47008290/git-how-to-make-outer-repository-and-embedded-repository-work-as-common-standal
Note: path/to/submodule (no trailing slash)
- git clone https://github.com/lin/somerepo
- git add .
- git commit -m 'add somerepo'
- git submodule deinit -f -- path/to/submodule
- rm -rf .git/modules/path/to/submodule