Created
September 9, 2013 15:58
-
-
Save jong/6497699 to your computer and use it in GitHub Desktop.
list branches based on commit activity (useful on Mondays...)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# adapted from: http://www.commandlinefu.com/commands/view/2345/show-git-branches-by-date-useful-for-showing-active-branches | |
[alias] | |
... | |
active = "!for k in $(git branch|perl -pe s/^..//); do echo $(git show --pretty=format:\"%Cgreen%ci %Cblue%cr%Creset\" $k -- | head -n 1) \\\t$k; done | sort -r" | |
---- | |
Use like: | |
$ git active |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment