From b4ea9f5b165a3ccf8a904dbf14be2fe02369fd9e Mon Sep 17 00:00:00 2001 From: Alec Lomas Date: Fri, 9 Oct 2020 14:48:31 -0700 Subject: [PATCH] :sparkles: add 'git ls' alias --- git/.gitconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/git/.gitconfig b/git/.gitconfig index f7d6d59..09d8b8e 100644 --- a/git/.gitconfig +++ b/git/.gitconfig @@ -25,6 +25,8 @@ co = "!f() { git checkout \"$1\" 2> /dev/null || git checkout -b \"$1\"; }; f" # use gitmoji moji = "!gitmoji -c" + # list new commits, in a pretty way + ls = !"BASE=$1; git log --pretty=oneline --abbrev-commit ${BASE:-master}..HEAD" [hub] protocol = https -- 2.51.2