From f6a980e6d40dc67792b15ccf4b0f592c3ccbc03e Mon Sep 17 00:00:00 2001 From: Nick Nisi Date: Tue, 30 Oct 2012 09:35:38 -0500 Subject: [PATCH] adding some more git aliases --- git/git.zsh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/git/git.zsh b/git/git.zsh index 1859327..a2751f7 100644 --- a/git/git.zsh +++ b/git/git.zsh @@ -14,8 +14,16 @@ alias grm='git rm' alias grn='git-rename' alias glog="git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative" +alias git-amend='git commit --amend -C HEAD' +alias git-undo='git reset --soft HEAD~1' +alias git-count='git shortlog -sn' + alias sub-pull='git submodule foreach git pull origin master' +funciton get-credit() { + git commit --amend --author $1 <$2> -C HEAD +} + # a simple git rename file function # git does not track case-sensitive changes to a filename. function git-rename() {