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="\