Created
January 22, 2018 18:34
-
-
Save S1SYPHOS/90a11831c4162360c9e8c9270ddee8db to your computer and use it in GitHub Desktop.
These one-liners update all Git submodules at once.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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