Git log

Cheatsheet

git log

relevant parameters:

  • --abbrev-commit
  • --color
  • --graph

Config

~/.config/git/config
[alias]
contributors=shortlog --summary --numbered
lg=log --graph --decorate --abbrev-commit --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an (%G?)>%Creset'
tree=log --graph --decorate --abbrev-commit --pretty=oneline
graph=log --graph --pretty=format:%C(yellow)%H%C(green)%d%C(reset)%n%x20%cd%n%x20%cn%x20(%ce)%n%x20%s%n

Related Notes