This content originally appeared on Stefan Judis Web Development and was authored by Stefan Judis
I came across Carolyn Van Slyck's article git wip: What the heck was I just doing?. She shared an excellent git alias (git wip
) that shows all available branches and how long their last commit is ago.
[alias]
wip = for-each-ref --sort='authordate:iso8601' --format=' %(color:green)%(authordate:relative)%09%(color:white)%(refname:short)' refs/heads
I tweaked it a bit to include the commit message of the last commit and changed it to zup
, too.
[alias]
zup = for-each-ref --sort='authordate:iso8601' --format='%(color:green)%(authordate:relative)%09%(color:white)%(refname:short) / %(contents:subject)' refs/heads
That's the result. ?
Love it! Thanks, Carolyn!
Reply to Stefan
This content originally appeared on Stefan Judis Web Development and was authored by Stefan Judis

Stefan Judis | Sciencx (2020-12-16T23:00:00+00:00) A git alias to show a detailed git branch overview (#snippet). Retrieved from https://www.scien.cx/2020/12/16/a-git-alias-to-show-a-detailed-git-branch-overview-snippet/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.