Workflows
Submodule Update Flow
Outline a safe routine for updating submodules, locking revisions, and syncing the parent repository.
Scenario
Outline a safe routine for updating submodules, locking revisions, and syncing the parent repository.
Suggested sequence
- Move the submodule to the intended commit
- Commit the pointer change in the parent repo
- Verify init and recursive update flows
Why this order is safer
The value of a workflow usually comes less from a single command and more from fixing the order of observation, action, and recovery.
Related commands
This topic makes more sense alongside commands such as git fetch, git log, git diff, git merge, git rebase, or git cherry-pick.