Skip to content

Instantly share code, notes, and snippets.

@sbentzen
Created August 14, 2012 22:07
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 sbentzen/3353428 to your computer and use it in GitHub Desktop.
Save sbentzen/3353428 to your computer and use it in GitHub Desktop.
Used to quickly get ALL registered submodules on the master branch.
#!/bin/bash
git submodule init
git submodule update
git submodule foreach git checkout master
git submodule foreach git pull
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment