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
    2
    ·
    1 year ago

    Love it. I might also do igt (as in id-jit), which is what I call myself when I typo that.

    • canpolatM
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      And gti. Apparently one cannot push a Golf GTI from command line.