git批量更新 #!/bin/sh for dir in $(ls -d */) do cd $dir echo “into $dir” if [ -d “.git” ]; then #echo “gitis $dir” git pull fi cd … done