Consider the following Git repositories:
controller
modules
common
Both controller
and modules
depend on code within common
. As such, common
is used as a git submodule within controller
and modules
.
Based on multiple answers given on SO (e.g., How do I "commit" changes in a git submodule? [duplicate], Updating a Git Submodule With Local Changes), I understand that the "ideal" workflow for making changes to common
would be:
- Make changes to
common
repository, commit and push - Update both
controller
andmodules
as necessary
However, this seems extremely cumbersome as I need to test the code within common
in combination with controller
or modules
, which would require that I (manually) copy the changes within common
to the respective submodules within controller
and modules
.
What am I missing here? Is it possible to update the common
submodules within the repos controller
and modules
with my local common
repository to spare me from any copy-paste work?