From 48fc23ba2782cbd3eec4efe70333218fa94282d0 Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Mon, 26 Nov 2012 13:20:47 -0800 Subject: [PATCH] Add git aliases for list (ls), long-list (ll) and list-date-stamp (lds) --- gitconfig | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gitconfig b/gitconfig index 87ac80a..a8c7eba 100644 --- a/gitconfig +++ b/gitconfig @@ -25,5 +25,13 @@ dpull = !git svn fetch && git svn rebase dcommit = svn dcommit lg = log --graph --pretty=format:'%Cred%h%Creset %s%Cred%d%Creset %Cgreen(%cr by %cN)%Creset' - flc = commit --amend + fix-last-commit = commit --amend + flc = fix-last-commit rmbr = push origin --delete + # http://durdn.com/blog/2012/11/22/must-have-git-aliases-advanced-examples/ + list = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate + ls = list + long-list = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat + ll = long-list + list-date-stap = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short + lds = list-date-stap