My favorite is git h, which produces a nicely summarized log of commits on the current branch, with some highlighting and relative dates:

[alias]
    h = log --graph  --abbrev-commit --date=relative --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'

What’s your favorite Git alias?

  • Jason NovingerOPM
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 years ago

    Looking for a repo somewhere with a messy history to demo my git h alias and what it can show. Not having much luck.

    Also, I should point out I’m not the originator of this one. I borrowed it from a former coworker years and years and years ago.