Skip to content

Instantly share code, notes, and snippets.

@jlgerber
Created May 4, 2017 14: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 jlgerber/e4f155e3dfc5f17d3a229f6e9f939dd5 to your computer and use it in GitHub Desktop.
Save jlgerber/e4f155e3dfc5f17d3a229f6e9f939dd5 to your computer and use it in GitHub Desktop.
git gists
# from http://stackoverflow.com/questions/5188320/how-can-i-get-a-list-of-git-branches-ordered-by-most-recent-commit
git for-each-ref --sort=committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment