As I am new to Git, i need some advise with this. I have a main project that is runnable on its own and inside it there is a folder that is considered as a sub-project. I can run and have a separate executable for each.
I did my search and only found this answer,

Is that possible and if so how it could be done?
CodePudding user response:
One possible avenue would be to declare the project1 repository as a submodule of project2.
That means:
project1no longer has aproject2subfolder (and ignore project2 existence)project2has aproject1subfolder, which helpsproject2to build itself, picking from theproject1subfolder the features it needs.- Any edit in that
project2will not to be included in project1
