Open utterances-bot opened 1 year ago
https://www.evanlin.com/til-separate-submodule-git/
There is another approach: git-filter-repo (https://github.com/newren/git-filter-repo) which seems better than git-filter-branch.
[TIL][GIT] How to correctly separate subdirectories from git repo
https://www.evanlin.com/til-separate-submodule-git/