Update all Git submodules to the latest commit
If you use Git submodules often, here's the one-liner to update them to the latest commit on origin (since Git 1.8.2):
git submodule update --remote --rebase
Prefer merging? Swap --rebase
for --merge
.