Git Submodules#
Clone Repo with submodules#
git clone --recursive [URL to Git repo]
Pull changes#
Pull all changes in the repo including changes in the submodules#
git pull --recurse-submodules
Pull all changes for the submodules#
git submodule update --remote
Add submodule and define the master branch as the one you want to track#
git submodule add -b master [URL to Git repo]
git submodule init
Move Submodule#
git mv a b