Skip to content

Instantly share code, notes, and snippets.

@dkavanagh
Created June 12, 2013 18:05
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/5767647 to your computer and use it in GitHub Desktop.
Save dkavanagh/5767647 to your computer and use it in GitHub Desktop.
pullupdates.sh
branch=`git rev-parse --abbrev-ref HEAD`
echo "pulling from "$branch
git submodule foreach git pull origin $branch
git pull origin $branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment