I experienced this error by clicking on git-repo hosted on raspberry pi. One of the files I tried to click is larger than the available memory (memory + swap) on the git server.
Fixed issue by temporarily creating a new swap file on git server:
dd if=/dev/zero of=/media/store/swapfile bs=1024 count=655360
mkswap /media/store/swapfile
swapon /media/store/swapfile
Verify that a new swap partition has been added:
swapon , cat /proc/swaps or free
(I do not want to add the swap file to /etc/fstab , so after rebooting the swap file will be deleted.)
andrel
source share