Skip to content

Instantly share code, notes, and snippets.

@ecoologic
Created October 29, 2015 22:16
Show Gist options
  • Save ecoologic/ee6d0423f2b8ed282187 to your computer and use it in GitHub Desktop.
Save ecoologic/ee6d0423f2b8ed282187 to your computer and use it in GitHub Desktop.
Smart Git branches (ordered by last update)
git for-each-ref --sort=-committerdate --format='%(committerdate:short)|%(refname)|%(authorname)' refs/heads refs/remotes | head -n20 | awk -F '|' '{ printf "%s %-70s %s\n", $1, $2, $3 }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment