Skip to content

Instantly share code, notes, and snippets.

@dmerrick
Created July 31, 2009 20:48
Show Gist options
  • Save dmerrick/159444 to your computer and use it in GitHub Desktop.
Save dmerrick/159444 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Updates all of the git repos in the current dir.
for dir in `find . -depth 2 -name .git | sed -e 's!^..\(.*\)/.*$!\1!;'`;
do echo "Updating $dir..."; cd $dir; git pull; cd ..;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment