Can a git submodule be created retroactively?
问题 I've seen a lot of tutorials on using submodules, but they both seem to have one of two common use cases. A) I've got some code in a subdirectory, I want to begin to track it separately, so I turn it into a submodule using filter-branch B) I want to pull a git repo into a subdirectory of my project and have it tracked separately But lets say you didn't know about git submodules and had a copy of a repo dropped into a subdirectory of your own repo, and had to make some modifications, but