summaryrefslogtreecommitdiffstats
path: root/gitconfig
diff options
context:
space:
mode:
authorJesse Luehrs <doy@stripe.com>2016-08-15 09:33:39 -0700
committerJesse Luehrs <doy@tozt.net>2016-08-15 09:33:54 -0700
commitc82f44e39cedc7911683ab51f196f43d4380b4a6 (patch)
treea7190ee54de3f09a352c6f063c2b4b144f3fbfbe /gitconfig
parent93b9a5e881fca00b9c8ac5065b9cab5eb818c9c3 (diff)
downloadconf-c82f44e39cedc7911683ab51f196f43d4380b4a6.tar.gz
conf-c82f44e39cedc7911683ab51f196f43d4380b4a6.zip
add a better alternative to git gc --aggressive
Diffstat (limited to 'gitconfig')
-rw-r--r--gitconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/gitconfig b/gitconfig
index 538ddd3..30910b9 100644
--- a/gitconfig
+++ b/gitconfig
@@ -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]