Are there size limits for pushing files to a repository?

Updated at:

This topic answers common questions about pushing files to a repository.

Are there size limits for a single file in a repository?

Yes, there are. A single file uploaded from the web interface cannot exceed 50 MB. A single file uploaded from the command line cannot exceed 200 MB.

What do I do if an error occurs when I push a large file?

If you receive the object exceeds maximum allowed size error, it indicates that the file exceeds the size limit. For more information about how to handle large binary files, see Introduction to the Codeup Git LFS feature.

What do I do if a push with a large data volume consistently fails?

If you use HTTPS to push files and the total data volume is too large, the HTTP 413 curl 22 The requested URL returned error: 413 error may be returned. This is because message bodies have a size limit. To resolve this issue, switch to the Secure Shell (SSH) protocol and try again.

What are the timeout periods for push and clone operations?

The timeout period for a push is 60 minutes, and the timeout for a clone is 30 minutes. Timeouts usually occur because the repository is too large or the network connection is poor. Check your network connection.

Error when pushing code: "the remote end hung up unexpectedly"

This error can occur if the push is too large. This is because, by default, a single push has a size limit. To resolve the error, upgrade your Git version (for Mac clients) or increase the push size limit. For example, to increase the limit to 500 MB, run the following command:

git config http.postBuffer 524288000