error: cannot open /var/www/git/.git/FETCH_HEAD: Permission denied no FETCH_HEAD file code example Example: error: cannot open .git/FETCH_HEAD: Permission denied sudo chown -R $(whoami) .git/