Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@S1SYPHOS
Created January 22, 2018 18:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save S1SYPHOS/90a11831c4162360c9e8c9270ddee8db to your computer and use it in GitHub Desktop.
Save S1SYPHOS/90a11831c4162360c9e8c9270ddee8db to your computer and use it in GitHub Desktop.
These one-liners update all Git submodules at once.
# Older Git versions
git submodule foreach 'git fetch origin --tags; git checkout master; git pull' && git pull && git submodule update --init --recursive
# Newer Git versions
git submodule update --remote --merge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment