Skip to content

Instantly share code, notes, and snippets.

@jong
Created September 9, 2013 15:58
Show Gist options
  • Save jong/6497699 to your computer and use it in GitHub Desktop.
Save jong/6497699 to your computer and use it in GitHub Desktop.
list branches based on commit activity (useful on Mondays...)
# 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