Git submodules
related: Git
Init submodule
Run the first time you want to update:
git submodule update --init
Pull latest changes
First:
git pull --recurse-submodules
Then:
git submodule update --remote --merge
To update to the latest remote commit.
Reset submodule
# reset current directory
git reset --hard
# reset all submodules
git submodule foreach --recursive git reset --hard