From charlesreid1

(Created page with "To clone a repo plus all of its submodules (not done by default!), use the recursive flag: <pre> git clone --recursive <git-repo-address> </pre> If you forgot to use the rec...")
 
(No difference)

Latest revision as of 17:53, 12 July 2019

To clone a repo plus all of its submodules (not done by default!), use the recursive flag:

git clone --recursive <git-repo-address>

If you forgot to use the recursive flag, initialize all the submodules from the repo folder via:

git submodule update --init

If you have all the submodules and you want to update all of them from their respective remotes, use

git submodule update --remote