Created
December 6, 2011 13:13
-
-
Save gwenhael-le-moine/1438167 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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