A submodule is a nested Git repository pinned to a specific commit inside another repository. The --recurse-submodules flag initializes and checks out every submodule right after the clone finishes. Without it the submodule directories stay empty until you run git submodule update --init.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.