Last active
May 27, 2023 09:26
-
-
Save jeffchao/6556183 to your computer and use it in GitHub Desktop.
Show git branches ordered by latest commit. Also by name and date.
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
# By commit hash | |
git for-each-ref --sort=-committerdate refs/heads/ | |
# By name, date. | |
git for-each-ref --sort=-committerdate refs/heads/ --format='%(committerdate:short) %(authorname) %(refname:short)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment