I'm sure you know the situation but I don't know the correct wording:
I have a repository with a couple of submodules which I work on in the context of the main repository - i.e. I often have to change the content of the submodules rather than working on them somewhere else separately.
When I've added/committed changes to those submodules, quite often I commit/push the submodules new commit ID but forget to push the submodule itself.
Locally this is no problem and hard to identify but of course the build breaks because even the checkout goes wrong.
I know with git this situation is not easy to handle in a general way because of how remotes work but there must be approaches to avoid this situation.
What is yours? Is there a git intrinsic method?