Friday, July 27, 2012

Git Branches by Date

Sorry, I forget where I took this from. This is all one line.

for k in `git branch|sed s/^..//`;do echo -e `git log -1 --pretty=format:"%Cgreen%ci %Cblue%cr%Creset" "$k"`\\t"$k";done|sort

2 comments:

Unknown said...

Love these one liners :) thanks man

Unknown said...

Love these one liners :) thanks man!