From ca650057079eee1517ad91469a8cd5920546704f Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 14 May 2023 22:56:05 +0200 Subject: [PATCH] gc --- bash/alias/git.sh | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/bash/alias/git.sh b/bash/alias/git.sh index 9917fd7..f2e2750 100644 --- a/bash/alias/git.sh +++ b/bash/alias/git.sh @@ -56,12 +56,6 @@ branch \ --set-upstream-to \ " -# clone a remote repository -alias gc="\ -git \ -clone \ -" - # clean untracked files alias gcf="\ git \ @@ -71,16 +65,36 @@ clean \ " # commit the index -alias gcm='git commit -m' +alias gc="\ +git \ +commit \ +-m \ +" # redo the last commit with a different message -alias gcma='git commit --amend -m' +alias gca="\ +git \ +commit \ +--amend \ +-m \ +" # make a root commit -alias gcmr='git commit --allow-empty --allow-empty-message -m ""' +alias gce="\ +git \ +commit \ +--allow-empty \ +--allow-empty-message \ +-m \"\" \ +" # commit the index and sign -alias gcms='git commit --gpg-sign -m' +alias gcs="\ +git \ +commit \ +--gpg-sign \ +-m \ +" # switch to a branch or checkout file(s) from a commit alias gco="\