From charlesreid1

Revision as of 17:53, 12 July 2019 by Admin (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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