Last active
January 11, 2022 14:47
-
-
Save FalcoSuessgott/71f19bad6289358e22fcf92aff0f2eda to your computer and use it in GitHub Desktop.
List all branches and there last commits (Git alias)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
[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))' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Output: