I learned that to download submodules with main repository we can use --recursive
option when cloning main repository.
I did the same git clone --recursive [email protected]:passion/academy.git
I found that it only create a empty directory of submodule but not downloaded its code.
Do we need to do extra stuff like git submodule update --init --recursive
? If yes then what is the use of --recursive
flag when cloning main repository ?
git clone --recursive
should do as you are expecting. Are you using earlier than that version? That is a fairly old version but figured worth asking :D – Banker