Skip to content

Instantly share code, notes, and snippets.

@gwenhael-le-moine
Created December 6, 2011 13:13
Show Gist options
  • Save gwenhael-le-moine/1438167 to your computer and use it in GitHub Desktop.
Save gwenhael-le-moine/1438167 to your computer and use it in GitHub Desktop.
#!/bin/sh
for i in $(git submodule | sed 's|^ |_|g' | cut -d\ -f2); do
(cd $i;
git checkout master && git pull && git push
);
git commit $i -sm "updated submodule $i";
done;
git pull && git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment