diff --git a/shell/alias/git.sh b/shell/alias/git.sh index bb7301e..6dd641e 100644 --- a/shell/alias/git.sh +++ b/shell/alias/git.sh @@ -73,6 +73,25 @@ gbs() { "${@}" } +# redo the last commit with a different message +gcam() { + git \ + commit \ + --amend \ + --message \ + "${@}" +} + +# make a root commit +gcem() { + git \ + commit \ + --allow-empty \ + --allow-empty-message \ + --message \ + "${@}" +} + # clean untracked files gcf() { git \ @@ -90,25 +109,6 @@ gcm() { "${@}" } -# redo the last commit with a different message -gcma() { - git \ - commit \ - --amend \ - --message \ - "${@}" -} - -# make a root commit -gcme() { - git \ - commit \ - --allow-empty \ - --allow-empty-message \ - --message \ - "${@}" -} - # switch to a branch or checkout file(s) from a commit gco() { git \