turning a submodule into a regular folder, keeping commit history

at work I had to turn a submodule inside a repo into a regular subfolder. reason was: it did not make sense anymore to treat that as a submodule, since only the repo it was used in would make use of it. I ended up doing the following git submodule status to get the paths of all submodules git submodule deinit path/to/submodule git rm path/to/submodule rm -rf .git/modules/path/to/submodule now all…