Git Pull with Submodule
Pull git repo with submodule
For a repo with submodules, we can pull all submodules using
git submodule update --init --recursive
for the first time. All submodules will be pulled down locally.
To update submodules, we can use
git submodule update --recursive --remote
or simply
git pull --recurse-submodules
The first one works for git version 1.8.2
or above while the second one works for git version 1.7.3
or above.
References:
Planted:
by Lei Ma;
Similar Articles:
L Ma (2017). 'Git Pull with Submodule', Datumorphism, 02 April. Available at: https://datumorphism.leima.is/til/programming/git/git-pull-with-submodule/.