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:
project1
no longer has aproject2
subfolder (and ignore project2 existence)project2
has aproject1
subfolder, which helpsproject2
to build itself, picking from theproject1
subfolder the features it needs.- Any edit in that
project2
will not to be included in project1