#!/bin/sh cd $HOME/repos for repo in $(ls) do [ -d $repo/.git ] && echo $repo && \ echo "------------------------------------------------------" && \ git --git-dir=$repo/.git --work-tree=$repo status 2>/dev/null && \ echo "------------------------------------------------------" done