Skip to content

Instantly share code, notes, and snippets.

@braynm
Last active January 28, 2022 01:09
Show Gist options
  • Save braynm/9439780e6d01187982e69b5cfb3d69cd to your computer and use it in GitHub Desktop.
Save braynm/9439780e6d01187982e69b5cfb3d69cd to your computer and use it in GitHub Desktop.
List branches with last commit, subject, author and last activity

List local branches

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