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