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)