Skip to content

Instantly share code, notes, and snippets.

@nertzy
Last active December 28, 2015 10:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nertzy/7487591 to your computer and use it in GitHub Desktop.
Save nertzy/7487591 to your computer and use it in GitHub Desktop.
Show remote git branches, how old they are, and who made the last commit
origin/staging 22 hours ago Grant Hutchins and Rick Reilly
origin/restrict_to_reports 2 days ago Grant Hutchins and Rick Reilly
origin/master 3 days ago Grant Hutchins
origin/HEAD 3 days ago Grant Hutchins
staging/master 3 days ago Grant Hutchins
origin/provide_feedback_pagination 7 days ago Dave Goddard
origin/provide_feedback 8 days ago Dave Goddard and Paul Meskers
origin/provide_feedback_check_manager 8 days ago Dave Goddard
origin/reply_to_emails 8 days ago Dave Goddard and Paul Meskers
origin/experimental-js 2 weeks ago Brent Wheeldon and Nigel Pepper
#!/bin/sh
for branch in `git branch -r | awk '{print $1}'`
do echo `git log -1 $branch --pretty=format:"%at:%%$branch%%%cr%%%cn%n"`
done | column -t -s'%' | sort -nr | cut -d ':' -f 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment