Skip to content

Instantly share code, notes, and snippets.

@FalcoSuessgott
Last active January 11, 2022 14:47
Show Gist options
  • Save FalcoSuessgott/71f19bad6289358e22fcf92aff0f2eda to your computer and use it in GitHub Desktop.
Save FalcoSuessgott/71f19bad6289358e22fcf92aff0f2eda to your computer and use it in GitHub Desktop.
List all branches and there last commits (Git alias)
...
[alias]
# https://stackoverflow.com/questions/5188320/how-can-i-get-a-list-of-git-branches-ordered-by-most-recent-commit
br = 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))'
@FalcoSuessgott
Copy link
Author

Output:
image

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