Skip to content

Instantly share code, notes, and snippets.

@lectroidmarc
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lectroidmarc/fcd9c24015b076175afa to your computer and use it in GitHub Desktop.
Save lectroidmarc/fcd9c24015b076175afa to your computer and use it in GitHub Desktop.
Recursive 'git pull'.
#!/bin/sh
RUN_DIR=`pwd`;
find . -type d -name .git -print0 \
| xargs -0 -I{} dirname {} \
| sort \
| while read line; do echo "\033[1m$line\033[0m" && cd "$line" && git pull; cd "$RUN_DIR"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment