From 7f814102e06b748d1939d54787c833a57d57f54c Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 16 Nov 2024 19:02:56 +0100 Subject: [PATCH] gf,gfp --- shell/alias/git.sh | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/shell/alias/git.sh b/shell/alias/git.sh index a93bcb5..4044fa8 100644 --- a/shell/alias/git.sh +++ b/shell/alias/git.sh @@ -209,21 +209,20 @@ gdw() { } # fetch from the remote repository -alias gf="\ -git \ -fetch \ ---verbose \ ---tags \ -" +gf() { + git \ + fetch \ + --tags \ + --verbose \ + "${@}" +} # fetch from remote repository and prune local orphan branches -alias gfp="\ -git \ -fetch \ ---verbose \ ---tags \ ---prune \ -" +gfp() { + gf \ + --prune \ + "${@}" +} # garbage collect all orphan commits alias ggc="\