how to git clone with submodules

For git version 1.6.5 or later just use –

git clone --recursive git://github.com/foo/bar.git

for already cloned repos or older git version please run –

git clone git://github.com/foo/bar.git
cd bar
git submodule update --init --recursive

Leave a Reply

Your email address will not be published. Required fields are marked *