Last Updated: February 25, 2016
·
388
· jwolstenholme

update multiple git projects

We have a collection of git projects which are all peers in the file system. A handy way to update them all is to exec the following:

find . -depth 1 -type d -execdir git -C "{}" pull \;

This requires git > 1.8.5.