Skip to content

Instantly share code, notes, and snippets.

@stevenkword
Created October 30, 2014 17:10
Show Gist options
  • Save stevenkword/c73d0a79c2162421d414 to your computer and use it in GitHub Desktop.
Save stevenkword/c73d0a79c2162421d414 to your computer and use it in GitHub Desktop.
Git Batch Update
#!/bin/bash
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