~me/projects/foo
~me/projects/goo
~me/projects/hoo
cd ~me/projects/foo && git pull
cd ~me/projects/goo && git pull
cd ~me/projects/hoo && git pull
find ~me/projects/ \
| while read line; do cd $line && git pull; done
To find repository directories and filter out non-repostitory directories, we can use find with options, pipe to the xargs command and dirname command, then pipe to the while loop:
find ~me/projects/ -type d -name .git \
| xargs -n 1 dirname \
| while read line; do cd $line && git pull; done
See Git: How to find git repository directories
find ~me/projects/ -type d -name .git \
| xargs -n 1 dirname \
| sort \
| while read line; do echo $line && cd $line && git pull; done