Skip to content

Instantly share code, notes, and snippets.

@TheLinx
Created November 8, 2009 19:16
Show Gist options
  • Save TheLinx/229443 to your computer and use it in GitHub Desktop.
Save TheLinx/229443 to your computer and use it in GitHub Desktop.
#!/bin/bash
for n in *; do
if [ -d $n ]; then
if [ -d $n/.git ]; then
echo "-- $n --";
cd "$n";
git pull origin master;
cd ..;
fi;
fi;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment