diff options
author | Jesse Luehrs <doy@stripe.com> | 2016-08-15 09:33:39 -0700 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2016-08-15 09:33:54 -0700 |
commit | c82f44e39cedc7911683ab51f196f43d4380b4a6 (patch) | |
tree | a7190ee54de3f09a352c6f063c2b4b144f3fbfbe /gitconfig | |
parent | 93b9a5e881fca00b9c8ac5065b9cab5eb818c9c3 (diff) | |
download | conf-c82f44e39cedc7911683ab51f196f43d4380b4a6.tar.gz conf-c82f44e39cedc7911683ab51f196f43d4380b4a6.zip |
add a better alternative to git gc --aggressive
Diffstat (limited to 'gitconfig')
-rw-r--r-- | gitconfig | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -34,6 +34,7 @@ track = "!f() { local name=$(git name-rev --name-only @); git branch --set-upstream-to=origin/$name $name; }; f" stashed = stash list --pretty=format:'%gd: %Cred%h%Creset %Cgreen[%ar]%Creset %s' refix = "!f() { env EDITOR=true git rebase -i \"$@\"; }; f" + gc-aggressive = "!f() { git repack -Abd --window=250 --depth=250 --window-memory=1g && git prune --expire \"1 day ago\" && rm -f .git/gc.log && git gc; }; f" [github] user = doy [color] |