Find all folders and change permissions to rwxr-xr-x
.
find project/ -type d -exec chmod 755 {} \;
Find all folders and change ownership.
find project/ -type d -exec chown user\:group {} \;
Find all files and change permissions to rw-r--r--
.
find * -type f -exec chmod 644 {} \;
Find all git repositories 2 folders deep from the current diroctory and update them.
find . -type d -depth 2 -exec git --git-dir={}/.git --work-tree=$PWD/{} pull origin master \;