From beb479ba7ce4931b004fba3e0fc3a09b815dd993 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 16 Nov 2024 19:07:11 +0100 Subject: [PATCH] ggc --- shell/alias/git.sh | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/shell/alias/git.sh b/shell/alias/git.sh index 4044fa8..801df15 100644 --- a/shell/alias/git.sh +++ b/shell/alias/git.sh @@ -225,18 +225,17 @@ gfp() { } # garbage collect all orphan commits -alias ggc="\ -git \ -reflog \ -expire \ ---all \ ---expire \"all\" \ -; \ -git \ -gc \ ---aggressive \ ---prune=\"now\" \ -" +ggc() { + git \ + reflog \ + expire \ + --all \ + --expire "all" && + git \ + gc \ + --aggressive \ + --prune="now" +} # initialize a new repository alias gi="\