From 5bb806794cb3785a72925c95eb15402d123fcec9 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Fri, 15 Jan 2016 12:07:37 -0500 Subject: Move pretty git log format to .gitconfig --- .gitconfig | 2 ++ .zshrc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitconfig b/.gitconfig index 3b0f18b1..c55324f3 100644 --- a/.gitconfig +++ b/.gitconfig @@ -13,6 +13,8 @@ autocorrect = 1 [color] ui = true +[pretty] + log = %Cred%h %Creset%s%C(yellow)%d %Cgreen(%ar) %Cblue<%an> [sendemail] smtpencryption = tls smtpserver = smtp.gmail.com diff --git a/.zshrc b/.zshrc index ec27c88e..bdb5313e 100644 --- a/.zshrc +++ b/.zshrc @@ -99,7 +99,7 @@ alias gca='git commit --amend' alias gcl='git clone' alias gco='git checkout' alias gd='git diff' -alias gl="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --color" +alias gl='git log --graph --pretty=log' alias gm='git merge' alias gmv='git mv' alias gp='git push' -- cgit 1.4.1