Created
April 28, 2013 23:18
-
-
Save russellbeattie/5478840 to your computer and use it in GitHub Desktop.
I have a directory where I clone interesting github repos - here's quick script to update them all at once.
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
p=`pwd` | |
for dirname in `find . -type d -maxdepth 1 -mindepth 1` | |
do | |
if [ -d $dirname/.git ] | |
then | |
cd $dirname | |
echo `pwd` | |
git pull origin master | |
fi | |
cd $p | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment