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.
Written by Joshua Ballanco
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Aliases
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#