Created
November 10, 2017 19:17
-
-
Save rms80/4e14099ff422af3a6df3e38914908c05 to your computer and use it in GitHub Desktop.
update each submodule to most recent commit to master branch
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
REM grab latest commits from server | |
git submodule update --recursive --remote | |
REM above command will set current branch to detached HEAD. set back to master. | |
git submodule foreach git checkout master | |
REM now do pull to fast-forward to latest commit | |
git submodule foreach git pull origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks!