From 1ddba597596a31b6335c0a10616b61dc01ee280f Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 16 Nov 2024 18:43:09 +0100 Subject: [PATCH] gb,gbd,gbdf,gbl,gbs --- shell/alias/git.sh | 61 +++++++++++++++++++++++++--------------------- 1 file changed, 33 insertions(+), 28 deletions(-) diff --git a/shell/alias/git.sh b/shell/alias/git.sh index 88188c2..ce073a0 100644 --- a/shell/alias/git.sh +++ b/shell/alias/git.sh @@ -31,42 +31,47 @@ gap() { } # create a branch -alias gb="\ -git \ -branch \ -" +gb() { + git \ + branch \ + "${@}" +} # delete a branch -alias gbd="\ -git \ -branch \ ---delete \ -" +gbd() { + git \ + branch \ + --delete \ + "${@}" +} # force a branch deletion -alias gbdf="\ -git \ -branch \ ---delete \ ---force \ -" +gbdf() { + git \ + branch \ + --delete \ + --force \ + "${@}" +} # list branches -alias gbl="\ -git \ -branch \ ---all \ ---list \ ---verbose \ ---verbose \ -" +gbl() { + git \ + branch \ + --all \ + --list \ + --verbose \ + --verbose \ + "${@}" +} # set the link to a remote branch from a local branch -alias gbsu="\ -git \ -branch \ ---set-upstream-to \ -" +gbs() { + git \ + branch \ + --set-upstream-to \ + "${@}" +} # clone a remote repository alias gc="\