Skip to content

Instantly share code, notes, and snippets.

@JamieMason
Last active April 30, 2019 23:19
Show Gist options
  • Save JamieMason/4976c57c5bae0b7ed3404eb794056613 to your computer and use it in GitHub Desktop.
Save JamieMason/4976c57c5bae0b7ed3404eb794056613 to your computer and use it in GitHub Desktop.
List local and remote git branches in date order and display them in a table.
git for-each-ref --sort=-committerdate refs/remotes/ --format="%(HEAD) %(color:yellow)%(refname:short)%(color:reset)|%(color:red)%(objectname:short)%(color:reset)|%(contents:subject)|%(authorname)|%(color:green)%(committerdate:relative)%(color:reset)" | column -t -s "|"
@morenitux
Copy link

Thanks to this line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment