From bfc1ca5b71853876f438f8cb01826e4c5efeec8c Mon Sep 17 00:00:00 2001 From: Yan Pritzker Date: Wed, 9 Oct 2013 13:56:30 -0500 Subject: [PATCH] git recent-branches - tell me what i worked on recently --- git/gitconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/git/gitconfig b/git/gitconfig index bf2d73d..e7734bf 100644 --- a/git/gitconfig +++ b/git/gitconfig @@ -20,6 +20,9 @@ snapshot = !git stash save "snapshot: $(date)" && git stash apply "stash@{0}" snapshots = !git stash list --grep snapshot + #via http://stackoverflow.com/questions/5188320/how-can-i-get-a-list-of-git-branches-ordered-by-most-recent-commit + recent-branches = !git for-each-ref --count=5 --sort=-committerdate refs/heads/ --format='%(refname:short)' + # branch b = branch -v # branch (verbose)