Skip to content

Instantly share code, notes, and snippets.

@beatak
Created February 5, 2013 08:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save beatak/4712970 to your computer and use it in GitHub Desktop.
Save beatak/4712970 to your computer and use it in GitHub Desktop.
via http://d.hatena.ne.jp/kazuhooku/20130205/1360039870 put this file (without suffix) in /usr/local/bin and chmod a+x. in git repository, type `git recent`
#!/bin/sh
(for i in `git branch | colrm 1 2` ; do echo `git log --date=iso8601 -n 1 --pretty="format:[%ai] %h" $i` $i ; done) | sort -r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment