Software⏱️ 2 min read📅 2026-05-31

How to Fix: Github Push Error: RPC failed; result=22, HTTP code = 413

Git push error due to large file size exceeding GitHub's HTTP post buffer limit.

Quick Answer: Increase the HTTP post buffer size using `git config --global http.postBuffer 1073741824` or use a smaller commit with multiple pushes.

The error 'RPC failed; result=22, HTTP code = 413' indicates that the GitHub push operation is failing due to a large file size. This issue can be caused by several factors, including:

🛑 Root Causes of the Error

  • Large file size exceeding GitHub's maximum allowed size (150MB for most users)
  • Insufficient disk space or network bandwidth on your local machine
  • Corrupted or incomplete repository data

🛠️ Step-by-Step Verified Fixes

Method 1: Reduce File Size

  1. Step 1: Use a tool like FileZilla to split large files into smaller chunks and upload them separately.

Method 2: Optimize Repository Settings

  1. Step 1: Open your repository settings and go to the 'Repository' tab.

Method 2: Optimize Repository Settings (continued)

  1. Step 1: In the 'Repository' tab, click on the 'Edit' button next to 'Push large files'.

💡 Conclusion

To resolve this issue, you can try reducing the file size by splitting it into smaller chunks or optimizing your repository settings to allow larger file uploads.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions