Skip to content

Instantly share code, notes, and snippets.

@casivaagustin-zz
Created September 11, 2013 16:36
Show Gist options
  • Save casivaagustin-zz/6526275 to your computer and use it in GitHub Desktop.
Save casivaagustin-zz/6526275 to your computer and use it in GitHub Desktop.
#!/bin/bash
SRCROOT=`pwd`;
find . -name '.git' | while IFS=":" read TARGET
do
TARGET_DIR=`dirname $TARGET`;
cd $TARGET_DIR;
echo "=== UPDATE $TARGET_DIR ===";
git pull;
cd $SRCROOT;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment