# If you cloned without submodules, run this to update all submodules
git submodule update --init
# This will clone a repo with all submodules included
git clone --recurse-submodules
git clone git://github.com/foo/bar.git
cd bar
git submodule update --init --recursive
git clone --recurse-submodules
git clone --recurse-submodules <repo-url> .