Search code examples
gitmsysgit

git packSizeLimit, msysgit default value is 2GB - why?


Is there a particular reason behind setting git's packSizeLimit to 2GB by default in MSysGit?


Solution

  • As the default for packSizeLimitis unlimited, running git gcon large repos (something like 10 GiB in .git) will likely lead to "out of memory" errors, depending on your machine's memory configuration. That's why it was decided to set sensible defaults.