Skip to content

Instantly share code, notes, and snippets.

@dkavanagh
Created February 5, 2013 20:48
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 dkavanagh/4717519 to your computer and use it in GitHub Desktop.
Save dkavanagh/4717519 to your computer and use it in GitHub Desktop.
This script is called by passing in a new branch name. It is used by eucalyptus where we have sub-modules that require updating as well as the top level refs. Errors will cause things to stop (like changes not checked in).
git submodule foreach git checkout $1
git submodule foreach git pull origin $1
git checkout $1
git pull origin $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment