Skip to content

Instantly share code, notes, and snippets.

@nomisoft
Created February 16, 2018 16:41
Show Gist options
  • Save nomisoft/d053252a451c6878b6dae87fead94874 to your computer and use it in GitHub Desktop.
Save nomisoft/d053252a451c6878b6dae87fead94874 to your computer and use it in GitHub Desktop.
Git - List branches sorted by latest 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