Add git branches command

* Lists all remote branches
* Sorts by last commit date, descending
* Shows how long the branch has been around
* Shows last commit author

```
$ git branches
6 days ago  Dan Croak  origin/HEAD
6 days ago  Dan Croak  origin/master
5 months ago  Dan Croak  origin/dc-rbenv-zsh
6 months ago  Sean Doyle  origin/sd-nvm-path
6 months ago  Tute Costa  origin/vim-multiple-cursors
7 months ago  Sean Doyle  origin/sd-vundle
8 months ago  Sean Griffin  origin/sg-disable-spring
9 months ago  Mike Burns  origin/mb-experimental-tag
```
This commit is contained in:
Ian Zabel 2015-02-20 16:33:23 -05:00
parent 326fae7de7
commit bca5bdfd9e

View file

@ -7,6 +7,7 @@
[alias]
aa = add --all
ap = add --patch
branches = for-each-ref --sort=-committerdate --format=\"%(color:blue)%(authordate:relative)\t%(color:red)%(authorname)\t%(color:white)%(color:bold)%(refname:short)\" refs/remotes
ca = commit --amend
ci = commit -v
co = checkout