about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2017-05-26T15·24-0400
committerWilliam Carroll <wpcarro@gmail.com>2017-05-26T15·24-0400
commitf0cd754a10f1548910adf20bc1bfd0679d982ab4 (patch)
tree299004f25c4188963507a612cd594bb96dfe15a8
parenta35d49f15dd2b37f971f0de5c9ca2453f99dfbd0 (diff)
Adds useful Git aliases
-rw-r--r--aliases.sh6
1 files changed, 6 insertions, 0 deletions
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)"'