git clone --recurse-submodules https://github.com/emscripten-core/emscripten.git

Category: Git - Core

git clone --recurse-submodules https://github.com/emscripten-core/emscripten.git

Clone a repository and all its submodules

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.