I tried searching various other post but could not resolve my issue.
Below is the error message that I get while doing git pull
error: cannot fork() for rev-list: Cannot allocate memory
error: Could not run
git rev-list
error: cannot fork() for fetch-pack: Cannot allocate memory
I tried below command but unable to resolve it,
- git config --add core.bigFileThreshold 4m
- git gc --aggressive --prune=now This command failed to run unpack
Only the thing is that, there are many branches(100+). And the repo size is just 9MB (each file not greater than 100kb).
I thought of cloning the repo at some other location, but the clone failed with same error.