# Sorry, this diff is taking too long to generate. The diff is too large to display

**Code:** `GitHub: Sorry, this diff is taking too long to generate` · **Category:** Git · **Seen on:** Git

GitHub can't render a very large pull request diff.

## Meaning

Split the PR, exclude generated files with `.gitattributes` (`linguist-generated`), or review locally with `git diff` / `git range-diff`.

## Common causes

- Thousands of changed files
- Lockfiles/minified assets
- Generated code in the PR

## Quick fix

1. Split the pull request
2. Mark generated files `linguist-generated=true`
3. Review locally

## Detailed fix by platform

### Git

1. `git diff --stat origin/main...HEAD`

## How to diagnose

1. **Files** — how many?
2. **Generated** — excluded?
3. **Review** — local?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/git/github-gh009-pull-request-too-large-diff)
