Last active
May 7, 2019 11:58
-
-
Save wellington1993/8eb1898b08a453955dcccd0425cd9a76 to your computer and use it in GitHub Desktop.
GIt GC
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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