Skip to content

Instantly share code, notes, and snippets.

@dan
Created June 16, 2009 13:06
Show Gist options
  • Save dan/130670 to your computer and use it in GitHub Desktop.
Save dan/130670 to your computer and use it in GitHub Desktop.
Runs a "git pull origin master" in every subfolder of your work/projects folder. Handy for updating everything. Quietly fails for non-git projects.
#!/bin/sh
cd ~/work
for dir in `find . -type d -maxdepth 1 -mindepth 1`; do cd $dir; git pull origin master; cd -; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment