Thomas Step

This is where I share my thoughts and experiences that I encounter developing software.



18 January 2021

Git Clone With Submodules

by Thomas

If a git repo has submodules in it there are two options I use for cloning the repo and cloning the submodules in it. The first method is cloning the submodules during the original clone.

git clone --recursive <url>

The second method is to clone the repo and then clone the submodules.

git clone <url>
cd <repo>
git submodule update --init
Categories: dev