git clone(1) --recursive
Clone a repository into a new directory
--recursive, --recurse-submodules
    After the clone is created, initialize all submodules within, using their default settings. This is
    equivalent to running git submodule update --init --recursive immediately after the clone is
    finished. This option is ignored if the cloned repository does not have a worktree/checkout (i.e. if
    any of --no-checkout/-n, --bare, or --mirror is given)
source manpages: git-clone