find /path/to/repos -type d -exec chmod -R 770 {} \; find /path/to/repos -type f -exec chmod -R 660 {} \;