0

In SourceTree I am getting the following error when cloning a repo from a new machine:

Git out of memory error

I have tried editing the global config file using absolutely every suggestion on Stack Overflow and elsewhere, including:

pack.deltaCacheSize = 1g
pack.packSizeLimit = 1g
pack.windowMemory = 1g
core.packedGitLimit = 1g
core.packedGitWindowSize = 1g

As well as

core.preloadIndex = false;

And

pack.window = 0

And nothing works. Anything else I can try? There is a large maya model in the repo or something that is causing this but it has to be there...

intboolstring
  • 6,891
  • 5
  • 30
  • 44
Joey
  • 10,504
  • 16
  • 39
  • 54
  • see this: [git out of memory on checkout](https://stackoverflow.com/questions/34360328/git-out-of-memory-on-checkout) – yorammi Jul 21 '17 at 17:41
  • Yep, I have tried all of those settings already, it seems to be a different issue in my case – Joey Jul 21 '17 at 17:44
  • In SourceTree, are you using the Embedded or the System git? – Gino Mempin Jul 21 '17 at 23:40
  • Good point Gino! Especially if it is in Windows. – yorammi Jul 22 '17 at 18:02
  • Apparently, there's an [existing ticket](https://jira.atlassian.com/browse/SRCTREEWIN-6778) created for SourceTree on Windows, which seems fairly similar to yours. Their workaround might also work for you. – Gino Mempin Jul 23 '17 at 04:40
  • 1
    I ended up "solving" it just by downloading a .zip of the repo and then adding the remote URL in SourceTree. But I don't know if I should put this as an answer, since it's kindof a workaround and doesn't solve the underlying problem. – Joey Jul 23 '17 at 19:31

0 Answers0