From 626f9775321bc2655e8eb5fff0534e911bc9b67c Mon Sep 17 00:00:00 2001 From: Johann Dreo Date: Thu, 17 Jan 2013 14:43:03 +0100 Subject: [PATCH] Pretty git log --- .bashrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.bashrc b/.bashrc index 0b58540..0436cd9 100644 --- a/.bashrc +++ b/.bashrc @@ -154,6 +154,9 @@ alias cgcc="colout :[0-9]+: yellow standard | colout error | colout warning mage # shortcut to display the url config of remote repo in a git root alias git_remotes="grep -A 2 \"\[remote\" .git/config|grep -v fetch|sed \"s/\[remote \\\"//\"|sed ':a;N;\$!ba;s/\"\]\n\s*url = /\t/g'" +# Pretty git log +alias gitlog="git log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" + ################# # Configuration #