Sorry, this diff is taking too long to generate. The diff is too large to display
GitHub can't render a very large pull request diff.
Exact message you may see
this diff is taking too long to generateThe diff is too large to displayGitHub diff too largeSorry, this diff is taking too long to generate. The diff is too large to display
Seen on:
Git
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
- Split the pull request
- Mark generated files
linguist-generated=true - Review locally
Detailed fix by platform
Git
git diff --stat origin/main...HEAD
How to diagnose
- Files — how many?
- Generated — excluded?
- Review — local?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- Azure DevOps: TF402455 Pushes to this branch are not permitted; you must use a pull request remote: TF402455: Pushes to this branch are not permitted; you must use a pull request to update this branch.
- batch response: This repository is over its data quota batch response: This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs
- error: patch failed / patch does not apply error: patch failed: src/app.js:12 error: src/app.js: patch does not apply
Most viewed in Git
- Git SSL certificate problem fatal: unable to access 'https://…': SSL certificate problem: unable to get local issuer certificate
- workflow scope ! [remote rejected] … (refusing to allow a Personal Access Token to create or update workflow `.github/workflows/x.yml` without `workflow` scope)
- kex_exchange_identification kex_exchange_identification: Connection closed by remote host
Other ways to find it
Where this error sits
Origin: Build & delivery. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Did this fix work for you?
Report a correction or suggest an improvement
Last updated 25 Nov 2026