From f0cd754a10f1548910adf20bc1bfd0679d982ab4 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Fri, 26 May 2017 11:24:18 -0400 Subject: Adds useful Git aliases --- aliases.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/aliases.sh b/aliases.sh index f97866d53c8e..bd2588a73579 100644 --- a/aliases.sh +++ b/aliases.sh @@ -31,3 +31,9 @@ alias wdirs='dirs | tr " " "\n" | sort -r' # GitHub integration alias git=hub +# Git aliases +# List MRU branches +git config --global alias.recent 'for-each-ref --count=10 --sort=-committerdate refs/heads/ --format="%(refname:short)"' + +# List today's work +git config --global alias.today 'log --since=00:00:00 --all --no-merges --oneline --author="$(git config --get user.email)"' -- cgit 1.4.1