Created
October 9, 2012 08:56
-
-
Save tenpn/3857482 to your computer and use it in GitHub Desktop.
a very powershell-y way of getting the most unused git branches. makes an object with properties and sorts it.
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
git branch -r --merged develop | %{$_.trim()} | select @{n='Branch';e={$_}},@{n='LastCommit';e={[datetime](git log $_ -1 --pretty=format:%ci)}} | sort LastCommit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Now with datetimes!
Branch LastCommit
origin/speed 05/09/2012 09:58:40
origin/camera 06/09/2012 15:24:51
origin/trackgen 12/09/2012 14:23:37
origin/setpiececamera 17/09/2012 20:48:08
origin/gestures 17/09/2012 22:23:31