error: cannot open .git/FETCH_HEAD: Read-only file system code example Example: error: cannot open .git/FETCH_HEAD: Permission denied sudo chown -R $(whoami) .git/