Skip to content

Instantly share code, notes, and snippets.

@knatten
Created August 12, 2014 09:30
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save knatten/8df8d3c0f59d3aa1d538 to your computer and use it in GitHub Desktop.
Save knatten/8df8d3c0f59d3aa1d538 to your computer and use it in GitHub Desktop.
#!/bin/bash
function list {
for branch in `git branch --remote | awk '{print $1}'`; do
last=`git log $branch | grep Author | head -1 | awk '{print $NF}'`
echo $last $branch
done
}
list | sort
@tfheen
Copy link

tfheen commented Aug 12, 2014

Surely you mean last="$(git show "$branch" -s --pretty=format=%ce)" ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment