Git: pull all the submodules in one command
If your repo has submodules in it, do not bother to update them to the master or the latest tag you have, one by one. There is a time saver command to do that:
$ git submodule foreach git pull origin master
Here we will get all submodules updated to master. Now go coding :)
Written by Ignas Butėnas
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Version control
Authors
jasdeepkhalsa
9.865K
haeck
8.616K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#