Checking out Git Submodules
I would like to do a partial checkout of a Git repository containing submodules.
Here is what I did to check the directory :
cd MyRepo git checkout HEAD MyDirectory/puppet/
This checkouts MyDirectory/puppet but does’nt retrieve the submodules contained in MyDirectory/puppet/modules directory…
Any idea how I could checkout the submodules ? If I could do it without having to run same command on every submodules directory that would be great, because modules list is going to change quite frequently.
Thank you !
One Solution collect form web for “Checking out Git Submodules”
git submodule update --recursive