Last active
September 16, 2018 19:55
-
-
Save xbalaji/ac4e0653a8a1c0c6b23ccf281dc07b08 to your computer and use it in GitHub Desktop.
clean up git folder
This file contains hidden or 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
# see: https://stackoverflow.com/questions/5613345/how-to-shrink-the-git-folder | |
# good and safe command - from http://gcc.gnu.org/ml/gcc/2007-12/msg00165.html | |
git repack -a -d --depth=250 --window=250 | |
# default options should be enough for most cases, see: https://git-scm.com/docs/git-repack | |
git repack -a -d | |
# agressive way | |
# git gc --aggressive --prune |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment