Skip to content

Instantly share code, notes, and snippets.

@brotich
Created August 3, 2020 07:59
Show Gist options
  • Save brotich/7a54f06b10aff0c640e3955e79565ef1 to your computer and use it in GitHub Desktop.
Save brotich/7a54f06b10aff0c640e3955e79565ef1 to your computer and use it in GitHub Desktop.
Update submoudlews in a repo

Simply try below command after you have added your submodules.

for git v 1.8.x

git submodule update --init --recursive --remote

for v1.7.x:

git submodule update --init --recursive or git pull --recurse-submodules

for v1.6.x

git submodule foreach git pull origin master

to check your git version.

git version

from https://stackoverflow.com/a/43536170

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment