Skip to content

Instantly share code, notes, and snippets.

@lukewilkins
Created February 26, 2013 14:51
Show Gist options
  • Save lukewilkins/5038960 to your computer and use it in GitHub Desktop.
Save lukewilkins/5038960 to your computer and use it in GitHub Desktop.
Git configs to prevent "git gc" from running out of memory
git config pack.threads 1
git config pack.deltaCacheSize 1
git config core.packedGitWindowSize 16m
git config core.packedGitLimit 128m
git config pack.windowMemory 512m
@xjlin0
Copy link

xjlin0 commented Jan 12, 2021

Still magically works after 8 years, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment