Skip to content

Instantly share code, notes, and snippets.

@mamrehn
Created April 9, 2018 12:01
Show Gist options
  • Save mamrehn/e82641ebd7a7c0d5612267507fab9e05 to your computer and use it in GitHub Desktop.
Save mamrehn/e82641ebd7a7c0d5612267507fab9e05 to your computer and use it in GitHub Desktop.
Compress git repository
git repack -a -d --depth=250 --window=250
git gc
git prune
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment