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?

  • canpolatM
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 years ago

    “history” maybe? Same here, it’s mostly muscle memory. When I temporarily have to work on a different PC without my aliases, I feel like everything is in slow motion :)