From 3554f0b90536fccd1b670b283b5c3c584d291abd Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 16 Nov 2024 18:51:33 +0100 Subject: [PATCH] gco,gcoo,gcp,gcpa,gcpc --- shell/alias/git.sh | 51 +++++++++++++++++++++++++--------------------- 1 file changed, 28 insertions(+), 23 deletions(-) diff --git a/shell/alias/git.sh b/shell/alias/git.sh index 5bec3a2..b1ebb60 100644 --- a/shell/alias/git.sh +++ b/shell/alias/git.sh @@ -115,37 +115,42 @@ commit \ " # switch to a branch or checkout file(s) from a commit -alias gco="\ -git \ -checkout \ -" +gco() { + git \ + checkout \ + "${@}" +} # checkout an orphan branch -alias gcoo="\ -git \ -checkout \ ---orphan \ -" +gcoo() { + git \ + checkout \ + --orphan \ + "${@}" +} # pick a commit -alias gcp="\ -git \ -cherry-pick \ -" +gcp() { + git \ + cherry-pick \ + "${@}" +} # abort the commit pick -alias gcpa="\ -git \ -cherry-pick \ ---abort \ -" +gcpa() { + git \ + cherry-pick \ + --abort \ + "${@}" +} # continue the commit pick -alias gcpc="\ -git \ -cherry-pick \ ---continue \ -" +gcpc() { + git \ + cherry-pick \ + --continue \ + "${@}" +} # configure the user name alias gcun="\