Skip to content

Instantly share code, notes, and snippets.

@rms80
Created November 10, 2017 19:17
Show Gist options
  • Save rms80/4e14099ff422af3a6df3e38914908c05 to your computer and use it in GitHub Desktop.
Save rms80/4e14099ff422af3a6df3e38914908c05 to your computer and use it in GitHub Desktop.
update each submodule to most recent commit to master branch
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
@gatsbyz
Copy link

gatsbyz commented Oct 14, 2022

thanks 🙂

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