Chmod -R 644 *
chmod -R 644 .
then i had to chmod 777 .git