Resolving error 413 when running a git push
Written by
Updated at December 17, 2025
Issue description
When you attempt to push data to a Managed Service for GitLab repository, the command fails with the following error:
error: RPC failed;
HTTP 413 curl 22
The requested URL returned error: 413
Solution
You cannot change the Nginx settings for a specific instance: the maximum git push size over HTTP is limited to 250 MB.
To resolve this issue, you can:
- Use SSH to upload data.
- Push the code to the repository in parts.
To learn more, see this GitHub page