From 235202a64dd8cebc39ab05f5ae8fefea6517be50 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 17 Nov 2024 02:26:32 +0100 Subject: [PATCH] gma,gmc,gmf,gms,gmt --- shell/alias/git.sh | 55 +++++++++++++++++++++++++--------------------- 1 file changed, 30 insertions(+), 25 deletions(-) diff --git a/shell/alias/git.sh b/shell/alias/git.sh index 61188ed..57c897c 100644 --- a/shell/alias/git.sh +++ b/shell/alias/git.sh @@ -294,39 +294,44 @@ glp() { } # abort the current merge commit -alias gma="\ -git \ -merge \ ---abort \ -" +gma() { + git \ + merge \ + --abort \ + "${@}" +} # do a merge commit -alias gmc="\ -git \ -merge \ ---no-ff \ ---message \ -" +gmc() { + git \ + merge \ + --no-ff \ + --message \ + "${@}" +} # fast-forward to remote branch -alias gmf="\ -git \ -merge \ ---ff-only \ -" +gmf() { + git \ + merge \ + --ff-only \ + "${@}" +} # squash a branch and index its modifications -alias gms="\ -git \ -merge \ ---squash \ -" +gms() { + git \ + merge \ + --squash \ + "${@}" +} # merge via external tool -alias gmt="\ -git \ -mergetool \ -" +gmt() { + git \ + mergetool \ + "${@}" +} # push to the remote repository alias gp="\