1 2 3 4 5 6 7
#!/bin/sh for i in *; do if [ ! -e "$i"/.git ]; then continue; fi echo "================== $i ==================" (cd "$i" && git "$@") done