From 6ece14f3aea5ff7cd6337ee74810ef71dd3162c7 Mon Sep 17 00:00:00 2001 From: xerus2000 <27jf@pm.me> Date: Wed, 3 Jun 2020 12:31:25 +0200 Subject: [PATCH] Add gln alias to git config --- .config/git/config | 2 ++ .config/shell/git | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.config/git/config b/.config/git/config index f87e727..3e7b84c 100644 --- a/.config/git/config +++ b/.config/git/config @@ -40,6 +40,8 @@ [alias] st = status -sb stv = --paginate status -v + stvv = --paginate status -vv + ln = !git --no-pager log --pretty=tformat:'%C(auto)%h -%d %s %Cgreen(%cr) %Cblue<%an>%Creset' -5 unstage = reset HEAD -- ready = rebase -i @{u} diff --git a/.config/shell/git b/.config/shell/git index becfc64..7b3ff97 100644 --- a/.config/shell/git +++ b/.config/shell/git @@ -10,7 +10,7 @@ alias ghead='git rev-parse --short HEAD' alias gref='git reflog' # Show the 5 most recent commits without pager -alias gln='git --no-pager log --pretty=tformat:"%C(auto)%h -%d %s %Cgreen(%cr) %Cblue<%an>%Creset" -5 "$@"' +alias gln='git --no-pager log --pretty=tformat:"%C(auto)%h -%d %s %Cgreen(%cr) %Cblue<%an>%Creset" -5' # Log local and origin commits side by side - useful to check before forcing an action glno() {