Skip to content

Instantly share code, notes, and snippets.

@tobym
Created February 26, 2015 21:34
Show Gist options
  • Save tobym/8f89bc6caf1b73e0037b to your computer and use it in GitHub Desktop.
Save tobym/8f89bc6caf1b73e0037b to your computer and use it in GitHub Desktop.
Run `git freshness` to see remote branches sorted by their last commit date
#!/bin/sh
for branch in `git branch -r | grep -v HEAD`;do echo $(git show --pretty=format:'%ci|%an|%cr|' $branch | head -n 1)$branch; done | sort | column -t -s '|'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment