How to resolve Git fatal: the remote end hung up unexpectedly
A guide on how to increase the size limit of a Git commit to avoid this error.
While attempting to commit with a batch of images to my Git repo, I encountered this error:
This occurred because the size of the commit exceeded Git's default size limit.
To increase the limit, use the following command:
Alternatively, for SSH:
This setting will accommodate changes up to 500 MB. To apply this change universally, include the —global
flag. For even larger files, adjust the limit as necessary.
Keep in mind, Github's maximum file size limit is 2 GiB:
Published on November 7, 2023 • 1 min read