From f2e2aa16d30d772a51e29f77539be2ac05508690 Mon Sep 17 00:00:00 2001 From: Edson Samuel Jr Date: Fri, 26 Feb 2016 10:57:55 -0300 Subject: [PATCH] Add "ghh" alias for command "git rev-parse HEAD" This means something like "git hash head", allowing the user to get the SHA-1 hash for the HEAD commit. --- plugins/git/git.plugin.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh index 178f1deb..eab715ab 100644 --- a/plugins/git/git.plugin.zsh +++ b/plugins/git/git.plugin.zsh @@ -210,6 +210,7 @@ alias grt='cd $(git rev-parse --show-toplevel || echo ".")' alias gru='git reset --' alias grup='git remote update' alias grv='git remote -v' +alias grvh='git rev-parse HEAD' alias gsb='git status -sb' alias gsd='git svn dcommit'