Created
June 16, 2009 13:06
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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