I have a git project that is currently growing and several parts are starting to become projects in their own right.
So, I want to create submodules for them, but preserve the history of the files. There were moves between the different folders (eG from partThatIsNotItsOwnProject
to partThatIsItsOwnProject
and I'd like to have the history for that move too.)
Before:
/.git
/someFiles
/partThatIsItsOwnProject
--/subdirectory
/partThatIsNotItsOwnProject
--/subdirectory
I'd like to have:
/.git
/someFiles
/partThatIsItsOwnProject
--/.git
--/subdirectory
/partThatIsNotItsOwnProject
--/subdirectory
So, I guessed git subtree
would do that, but it seems to keep the original git repository and only display a part of it. git submodule
seems to be the target of this setup, but how do I do the transition?