From a48c21d780c6a3106fa0cdcb544155fd670ca1d8 Mon Sep 17 00:00:00 2001 From: Tony Deng Date: Wed, 22 Apr 2015 18:44:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89gm=E7=9A=84alias?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/git/git.plugin.zsh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh index d78b82df3..4fbd918b4 100644 --- a/plugins/git/git.plugin.zsh +++ b/plugins/git/git.plugin.zsh @@ -80,6 +80,31 @@ alias gco='git checkout' alias gcount='git shortlog -sn' compdef gcount=git alias gcp='git cherry-pick' +compdef _git gcp=git-cherry-pick +alias glg='git log --stat --max-count=10' +compdef _git glg=git-log +alias glgg='git log --graph --max-count=10' +compdef _git glgg=git-log +alias glgga='git log --graph --decorate --all' +compdef _git glgga=git-log +alias glo='git log --oneline --decorate --color' +compdef _git glo=git-log +alias glog='git log --oneline --decorate --color --graph' +compdef _git glog=git-log +alias gss='git status -s' +compdef _git gss=git-status +alias ga='git add' +compdef _git ga=git-add +alias gap='git add --patch' +alias gaa='git add --all' +#alias gm='git merge' +compdef _git gm=git-merge +alias grh='git reset HEAD' +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' alias gd='git diff'