From dcd540d3975a811e3ba0183acd6e811d0bfebb3e Mon Sep 17 00:00:00 2001 From: Andrew Mager Date: Sat, 29 Oct 2016 14:49:43 -0700 Subject: [PATCH] Add git alias for `gcM` (GPG-sign the commit) --- modules/git/README.md | 1 + modules/git/alias.zsh | 1 + 2 files changed, 2 insertions(+) diff --git a/modules/git/README.md b/modules/git/README.md index c2d0449c..bf4c3bb8 100644 --- a/modules/git/README.md +++ b/modules/git/README.md @@ -53,6 +53,7 @@ Aliases - `gc` records changes to the repository. - `gca` stages all modified and deleted files. - `gcm` records changes to the repository with the given message. + - `gcM` same as `gcm` but adds a GPG signature to the commit. - `gco` checks out a branch or paths to work tree. - `gcO` checks out hunks from the index or the tree interactively. - `gcf` amends the tip of the current branch using the same log message as diff --git a/modules/git/alias.zsh b/modules/git/alias.zsh index ffa854dd..d29c41a1 100644 --- a/modules/git/alias.zsh +++ b/modules/git/alias.zsh @@ -45,6 +45,7 @@ alias gbS='git show-branch -a' alias gc='git commit --verbose' alias gca='git commit --verbose --all' alias gcm='git commit --message' +alias gcM='git commit --gpg-sign --message' alias gco='git checkout' alias gcO='git checkout --patch' alias gcf='git commit --amend --reuse-message HEAD'