Skip to content

Instantly share code, notes, and snippets.

@zhugexiaobo
Created August 29, 2013 10:30
Show Gist options
  • Select an option

  • Save zhugexiaobo/6376519 to your computer and use it in GitHub Desktop.

Select an option

Save zhugexiaobo/6376519 to your computer and use it in GitHub Desktop.

Revisions

  1. zhugexiaobo created this gist Aug 29, 2013.
    7 changes: 7 additions & 0 deletions updateRepo.sh
    Original 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