I'm trying to use a subproject (Bundle) in my main project (Main), in a subtree (Main/path/to/Bundle).
Main (repository : remote/Main)
|- stuff
|- path
|- to
|- Bundle (repository : remote/Bundle)
|- otherstuff
What I want to keep is :
- For the subproject Bundle, the ability to pull, but also push for the specific sub directory only, to the remote repository dedicated to this sub project.
- For the Main project, at best nothing to change : push / pull will affect only Main repository, and will include the subproject.
What I don't need :
- keep subproject Bundle's history in the Main project.
I understand that this is the way that dependencies work. But the subproject Bundle can't be publicly available. I have to find another solution.
I know subtree is a good solution, so is subrepo ( French : subtree vs subrepo ). But it requires learning new merge logic, or new concepts I don't have yet. I'm newbie at git stuff, I'd like to limit the new skills to master or git addons to install. Plus, I don't need to keep the history of the subtree, which was the main goal of subtree or subrepo if I understood it correctly.
Is there a simple way to do this ? Did I miss something obvious ?
Thank you for your time !