浏览代码

Merge pull request #3012 from abstractj/git-gpg-signatures

Inclusion of aliases for sign git commits and tags
Robby Russell 10 年之前
父节点
当前提交
58491bda21
共有 1 个文件被更改,包括 12 次插入0 次删除
  1. 12 0
      plugins/git/git.plugin.zsh

+ 12 - 0
plugins/git/git.plugin.zsh

@@ -80,6 +80,18 @@ alias grhh='git reset HEAD --hard'
 alias gclean='git reset --hard && git clean -dfx'
 alias gwc='git whatchanged -p --abbrev-commit --pretty=medium'
 
+# Sign and verify commits with GPG
+alias gcs='git commit -S'
+compdef _git gcs=git-commit
+alias gsps='git show --pretty=short --show-signature'
+compdef _git gsps=git-show
+
+# Sign and verify tags with GPG
+alias gts='git tag -s'
+compdef _git gts=git-tag
+alias gvt='git verify-tag'
+compdef _git gvt=git verify-tag
+
 #remove the gf alias
 #alias gf='git ls-files | grep'