I am working on a large code base that is not currently under any revision control (yes, really). I have been working on one component in a deep directory and created a covert git repository to track my changes. I now want to add all the code to source control and make a repository for the whole directory tree. I want the new, outer repository to include all the history for the files in the inner repository. I do not want separate projects or submodules; I want to be as if the repository had been created in the root of the code tree from the start and the inner repository never existed. I want to delete the .git directory in the sub-directory but would prefer not to lose the revision history that it contains.
Everything I have read on the topic is about merging existing repositories and that is not the case here or about maintaining submodules or remote projects, which I don't want.
Thank you.