GIT: checking if repos are up-to-date

It's only going to work if you clone all of your git repos at the same place, but here it is:

function chkgit() {
    wd="$(pwd)"
    cd ~/git &&
    for i in $(ls)
    do
        cd $i
        echo -e "Checking $i ..."
        git pull
        cd ..
    done
    cd $wd
}