Git Push Error: RPC failed; HTTP 413 / curl 22 (Large File Commit)

Accidental multi-hundred-MB archive or `node_modules` committed into Git history.

Runs locally in browser Free · No login Independently Verified 2026-11-25 v4.1.0
Identifier: Git Push Error Platform: Git
Common Root Causes:
  • Accidental multi-hundred-MB archive or `node_modules` committed into Git history.

Interactive Diagnostic Checklist

Verified Solutions:
  1. Remove accidental large blobs with `git filter-repo`, add to `.gitignore`, and push cleanly.
Safe Diagnostic Command:
git rev-list --objects --all | git cat-file --batch-check="%(objecttype) %(objectname) %(objectsize) %(rest)" | sort -k3 -nr | head
Warning: Verify configuration changes in staging or with dry-run flags (e.g. nginx -t) before reloading production services.

Technical Explanation

Accidental multi-hundred-MB archive or `node_modules` committed into Git history. Recommended diagnostic: `git rev-list --objects --all | git cat-file --batch-check="%(objecttype) %(objectname) %(objectsize) %(rest)" | sort -k3 -nr | head`. Remediation: Remove accidental large blobs with `git filter-repo`, add to `.gitignore`, and push cleanly.

Worked Examples

  • Run `git rev-list --objects --all | git cat-file --batch-check="%(objecttype) %(objectname) %(objectsize) %(rest)" | sort -k3 -nr | head` to verify root cause before applying the remediation.

Limitations & Assumptions

  • Always verify configuration changes in staging or with dry-run flags (e.g. `nginx -t`) before reloading production services.

Source References & Verification

Resource ID: err-git-rpc-failed-http-413-buffer · Independently verified: 2026-11-25

Related Resources