How to git submodule init & git submodule update in a single command

Instead of separately running

submodule-init.sh
git submodule init
git submodule update

you can just

submodule-update-init.sh
git submodule update --init

In many cases, you also want to git submodule update recursively using:

submodule-update-recursive.sh
git submodule update --init --recursive

 


Check out similar posts by category: Git