We have a structure similar to Best Practice for Git Repositories with multiple projects in traditional n-tier design, with the following repositories:
Shared
ProjA
ProjB
Where ProjA
and ProjB
are developed by separate teams of 2-3 people, using and sometimes contributing to Shared
.
We thought of a simple model that doesn't require subtree or submodules, due to so many scares we read about those 2. Can you review and let us know if such a thing would work?
- Each
Proj
and alsoShared
each live in a separate repo, following the gitflow model - Jenkins will build with the latest from the
develop
branch of all 3 repos release.sh
of aProj
would merge tomaster
of bothProj
andShared
, create a tag on both, and Jenkins would build and deploy frommaster
.
Can this work? Keep in mind we're only 8 people, and we're just migrating into git, so we would like to keep stuff as simple as possible, so if we can avoid the learning curve of submodules and subtree, we would be happier. Or would we?