From af70985d82224125cde15c3ec1f4f6decb80a0ab Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 17 Nov 2024 02:45:45 +0100 Subject: [PATCH] rebase,rm --- shell/alias/git.sh | 62 +++++++++++++++++++++++++--------------------- 1 file changed, 34 insertions(+), 28 deletions(-) diff --git a/shell/alias/git.sh b/shell/alias/git.sh index 9956b23..3517ea0 100644 --- a/shell/alias/git.sh +++ b/shell/alias/git.sh @@ -358,44 +358,50 @@ gpf() { } # rebase current branch onto another -alias grb="\ -git \ -rebase \ -" +grb() { + git \ + rebase \ + "${@}" +} # abort current rebase -alias grba="\ -git \ -rebase \ ---abort \ -" +grba() { + git \ + rebase \ + --abort \ + "${@}" +} # continue current rebase -alias grbc="\ -git \ -rebase \ ---continue \ -" +grbc() { + git \ + rebase \ + --continue \ + "${@}" +} # force rebase without fast-forward -alias grbf="\ -git \ -rebase \ ---force-rebase \ -" +grbf() { + git \ + rebase \ + --force-rebase \ + "${@}" +} # rebase interactively -alias grbi="\ -git \ -rebase \ ---interactive \ -" +grbi() { + git \ + rebase \ + --interactive \ + "${@}" +} # remove and add removal to index -alias grm="\ -git \ -rm \ -" +grm() { + git \ + rm \ + "${@}" +} # add a new remote repository alias grma="\