How to update git Submodule after clone parent repository
Contents
Problem
Working on repository on another device, I run git clone
and clone the sources in parent repository directory(e.g. site
in following example directory structure) from gitlab. However, that command does not take submodule content (e.g. what I set in theme/LoveIt
).
|
|
Above themes/LoveIt
is empty directory.
Confirming .gitmodule
has following definition.
.gitmodule
|
|
Solution
run git submodule update --init
|
|
Then submodule is cloned into thema/LoveIt
.