Update all the submodule files
Use Git Submodule to manage your file version: Update all the submodule files
You can use submodule to manage different project file on git. But the subodule might include another submodule
. So you can run the following command to fetch all the files from submodule’s submodule.
git submodule update --init --recursive
Submodule hint
Because the submodule might have its own submodule. So the submodule might cause the recursive
submodule problem to the infinite loop
from fetching all the submodule files.
So the better way is to make a rule to include submodule to prevent the recursive
submodule problem.
- Complicate Repositoy
- Independent Component Repository Submodule
- Independent Helper Method Repositoy Submodule