I'm trying to get a submodule setup properly in git and I want to make sure I use it right.
I have main repository called MyProject
. I have a secondary repository that contains all of our code generated data access called Data
. I want to setup Data
as a submodule of MyProject
.
Data
rarely changes unless there is a schema change, or a small little bug fix.
Let's say I'm adding some new functionality to MyProject
which requires a schema change. Typically I would create a branch of MyProject
called NewFeature
and check in all my changes there until it's ready to be merged with master. I also want to create a branch for Data
so that any schema changes stay seperate from Master
until my changes are ready to be merged.
What's the right workflow for this or is there even one?
Thanks!