Created
August 29, 2013 10:30
-
-
Save zhugexiaobo/6376519 to your computer and use it in GitHub Desktop.
Revisions
-
zhugexiaobo created this gist
Aug 29, 2013 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ #!/bin/sh for dir in $(ls -d */) do if [ -d "$dir"/.git ]; then echo "$dir" && cd "$dir" && git pull && cd .. fi done