#!/bin/sh cur=`pwd` for v in `ls`; do if [ ! -d $cur"/"$v ]; then continue fi cd $v git add . git commit -m 'update' git push cd .. done