Created
May 3, 2011 10:28
-
-
Save fidothe/953126 to your computer and use it in GitHub Desktop.
run git pull / push / status in all child folders which are git repositories; run bundle install in all child folders which have Gemfiles
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/bash | |
for i in `find . -name Gemfile -depth 2 | xargs -n1 dirname` | |
do | |
pushd $i | |
bundle install | |
popd | |
done |
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/bash | |
for i in `find . -name .git -depth 2 | xargs -n1 dirname` | |
do | |
pushd $i | |
git pull | |
popd | |
done |
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/bash | |
for i in `find . -name .git -depth 2 | xargs -n1 dirname` | |
do | |
pushd $i | |
git push | |
popd | |
done |
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/bash | |
for i in `find . -name .git -depth 2 | xargs -n1 dirname` | |
do | |
pushd $i | |
git status -uno -s | |
popd | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nicely done! Thanks!