I have a Git repository in a folder called XXX, and I have second Git repository called YYY.
I want to import the XXX repository into the YYY repository as a subdirectory named ZZZ and add all XXX's change history to YYY.
Folder structure before:
├── XXX
│ ├── .git
│ └── (project files)
└── YYY
├── .git
└── (project files)
Folder structure after:
YYY
├── .git <-- This now contains the change history from XXX
├── ZZZ <-- This was originally XXX
│ └── (project files)
└── (project files)
Can this be done, or must I resort to using sub-modules?
Question&Answers:os