Last Updated: February 25, 2016
· jballanc

Git Submodule Update

If you have a git project with more than one submodule, add this to the [alias] section of your global git config:

smu = !git submodule foreach git pull && git commit -a -m \"Updated submodules\"

Then, running git smu in the project root will update each submodule to the latest version of the checked out branch, sync the submodule spec, and commit the updates, all with one command.