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="\