Git Cheat Sheet/Show submodule status

Inspect submodule commit pointers.

Section: Worktrees, Submodules, and Sparse Checkout

Show submodule status

bash
bash
git submodule status --recursive

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Worktrees, Submodules, and Sparse Checkout
Status short format
Compact status listing.
OpenIn sheetbash1 tag match
List all branches
Show local and remote-tracking branches.
OpenIn sheetbash1 tag match
List branches with last commit
Include tracking and latest commit info.
OpenIn sheetbash1 tag match
Show tag details
Inspect tag target and metadata.
OpenIn sheetbash1 tag match
Show repo root
Print the top-level working tree directory.
OpenIn sheetbash1 tag match
List config with source
Show active configuration and where each value came from.
OpenIn sheetbash1 tag match