Skip to content

Instantly share code, notes, and snippets.

@wellington1993
Last active May 7, 2019 11:58
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 wellington1993/8eb1898b08a453955dcccd0425cd9a76 to your computer and use it in GitHub Desktop.
Save wellington1993/8eb1898b08a453955dcccd0425cd9a76 to your computer and use it in GitHub Desktop.
GIt GC
git count-objects -v -H
#
git reflog expire --expire=now --all
git repack -a -d -f --depth=250 --window=250
git gc --aggressive --prune=now --force
#
git gc
git gc --aggressive
git repack -Ad # kills in-pack garbage
git prune # kills loose garbage
#
git count-objects -v -H
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment