Submodules mainly indicate a specific commit in the submodule that was used when committing in the parent git repository. After your merge, it seems that the submodules are ahead of what is expected after the merge. You have two options:
- go back to commit where the submodule currently points to
- update parent repository to use new submodule states
The first option was marked by others as
git submodule update
The second option, and I think this is what you are asking for, is done with
git add plugins/plugin?.git git commit -m 'update submodules'
which will update your HEAD state to maintain the current links of the submodule.
You can check what happens by looking at
git ls-tree HEAD | grep 'plugin1.git'
before and after updating the submodule. Compare this link with the current commit in this plugin:
cd plugins/plugin1.git git rev-parse HEAD
user1978011
source share