Skip to content

Instantly share code, notes, and snippets.

@peff
Created April 28, 2012 11:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peff/2518074 to your computer and use it in GitHub Desktop.
Save peff/2518074 to your computer and use it in GitHub Desktop.
git gc --aggressive case

This is a repository that has been packed over time with "git gc", but repacks from ~245M to ~145M with "git gc --aggressive". To narrow it down, I tried different packing options. With each of the following commands, I get these resulting pack sizes:

  • git repack -ad: 246M
  • git repack -ad -f: 376M
  • git repack -ad --window=250: 246M
  • git repack -ad -f --window=250: 145M
This file has been truncated, but you can view the full file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment