Skip to content

Instantly share code, notes, and snippets.

@nadeesha
Created March 14, 2014 07:23
Show Gist options
  • Save nadeesha/9543408 to your computer and use it in GitHub Desktop.
Save nadeesha/9543408 to your computer and use it in GitHub Desktop.
Git submodule ops
# pull latest commits of the submodules (not the ones your parent is pointing to)
git pull --recurse-submodules
# pull all submodules and get the proper commits as pointed by parent
git pull --recurse-submodules && git submodule update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment