Current folder structure
- /root: server code exists here
- /root/client: client code exists here (a subdirectory within the server's directory).
Current git tracking
- 1 repo tracking Server code in /root that gitignores the entire client directory
- 1 repo tracking Client code only within /root/client.
The Problem
I am trying to merge these two repos while keeping one as the subdirectory of the other, combining the historical commits of both (not losing any).
Findings So Far
I have found a lot of situations resolved on the Internet in which two repos have either 1) the same files or 2) will eventually be merged together at the same folder level, but have not found much on merging two repos if one is a subdirectory within another.
Any help would be greatly appreciated. Thank you!