Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Git Batch Update
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
for FOLDER in $DIR/*/; do cd $FOLDER; echo "Updating " $FOLDER; git pull; cd $DIR; done
echo 'Done!'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment