Skip to content

Instantly share code, notes, and snippets.

@opsb
Created November 11, 2015 12:28
Show Gist options
  • Select an option

  • Save opsb/affc1b6902765cf2290b to your computer and use it in GitHub Desktop.

Select an option

Save opsb/affc1b6902765cf2290b to your computer and use it in GitHub Desktop.
Git branches by date
#!/usr/bin/env bash
git for-each-ref --sort=-committerdate refs/heads/ --format='%(HEAD) %(color:blue)%(committerdate:relative)%(color:reset) %(color:red)%(refname)%(upstream:track)%(color:reset) %(authorname) %(objectname:short) %(color:green)%(contents:subject)' | sed 's/refs\/heads\///g' | less -XFR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment