Skip to content

Instantly share code, notes, and snippets.

@smarterclayton
Created July 18, 2018 17:38
Show Gist options
  • Save smarterclayton/601c9e042872ba32e363a762cd6a01da to your computer and use it in GitHub Desktop.
Save smarterclayton/601c9e042872ba32e363a762cd6a01da to your computer and use it in GitHub Desktop.
#!/bin/bash
git for-each-ref \
--sort=committerdate \
--format='%(HEAD) %(refname:short)^%(objectname:short)^%(committerdate:short)^%(upstream:trackshort)^%(contents:subject)' \
refs/heads/ |
column -t -s '^' |
GREP_COLOR='1;32' grep --color -E '^[*] *[^ ]*|$'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment