Shallow clone

# First time shallow clone (Or you can mofify .gitmodules manually instead of this command)
git submodule add --depth 1 [email protected]:lorem/ipsum.git path/to/submodule

# set permanently to shallow clone (like for deploying)
git config -f .gitmodules submodule.path/to/submodule.shallow true