Git
Submodules
Add
git submodule add $URL $PATH
Remove
git rm $PATH_TO_SUBMODULE
git add .
git commit
Cloning a project with submodules
git clone --recurse-submodules $URL
# or, in directory after cloning:
git submodule init
git submodule update