From 0b6afa5fa5cbdad29c3774190b6edebf3561cd99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Tansorier?= Date: Thu, 2 Mar 2017 16:12:53 +0100 Subject: [PATCH] gitconfig: change alias for logs --- gitconfig | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/gitconfig b/gitconfig index e6df268..16d38f6 100644 --- a/gitconfig +++ b/gitconfig @@ -14,12 +14,17 @@ br = branch d = diff dc = diff --cached - lo = log --name-status --abbrev-commit - olog = log --oneline now = rev-parse --short HEAD cp = cherry-pick - lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all - lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all + # logs + # lg : prefered log + # lgc: log commit title only + # lgd: log commit and its details + # lgb: log commit with branch + lg = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(white)%s%C(reset) %C(dim white)- %an%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)' --all + lgc = log --oneline + lgd = log --name-status --abbrev-commit + lgb = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all #[push]