From: James Bunton Date: Sun, 31 Jul 2016 14:37:26 +0000 (+1000) Subject: gitconfig: added expire-prune X-Git-Url: https://code.delx.au/dotfiles/commitdiff_plain/ba50c87297ef6372551e0b3d1db1b9a6cc480209 gitconfig: added expire-prune --- diff --git a/.gitconfig b/.gitconfig index 7321450..694d7bb 100644 --- a/.gitconfig +++ b/.gitconfig @@ -33,4 +33,5 @@ pushf = push --force-with-lease cherry-pick = cherry-pick -x branches-to-kill = !git branch --merged origin/master|grep -v master|xargs -n1 echo git branch -d - mergediff = !git checkout --quiet --detach HEAD && git merge --no-edit origin/master && git diff -C10 -M10 origin/master && git checkout --quiet - \ No newline at end of file + mergediff = !git checkout --quiet --detach HEAD && git merge --no-edit origin/master && git diff -C10 -M10 origin/master && git checkout --quiet - + expire-prune = !git reflog expire --expire=now --all && git gc --prune=now \ No newline at end of file