Last active
December 28, 2015 10:39
-
-
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
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
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 |
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
#!/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