Skip to content

Instantly share code, notes, and snippets.

@ricardogarfe
Last active July 6, 2026 10:31
Show Gist options
  • Select an option

  • Save ricardogarfe/c08731f578edc3ec54048375fcb206b5 to your computer and use it in GitHub Desktop.

Select an option

Save ricardogarfe/c08731f578edc3ec54048375fcb206b5 to your computer and use it in GitHub Desktop.
update git lg after ten years
[color]
ui = auto
branch = auto
diff = auto
status = auto
[core]
pager = less -FRX
[alias]
lg = lg1
lg1 = lg1-specific
lg2 = lg2-specific
lg3 = lg3-specific
lg1-specific = log --color=always --graph --abbrev-commit --decorate --date=relative --pretty=format:'%C(bold yellow)%h%C(reset) %C(bold red)%d%C(reset) %C(green)(%ar)%C(reset) %C(cyan)%s%C(reset) %C(blue)- %an%C(reset)'
lg2-specific = log --color=always --graph --abbrev-commit --decorate --date=relative --pretty=format:'%C(bold yellow)%h%C(reset) %C(bold red)%d%C(reset)%n%C(green)(%ar)%C(reset) %C(cyan)%aD%C(reset)%n%C(bold cyan)%s%C(reset) %C(blue)- %an%C(reset)'
lg3-specific = log --color=always --graph --abbrev-commit --decorate --date=relative --pretty=format:'%C(bold yellow)%h%C(reset) %C(bold red)%d%C(reset)%n%C(green)authored: %aD%C(reset)%n%C(blue)author: %an <%ae>%C(reset)%n%C(magenta)committed: %cD%C(reset)%n%C(cyan)committer: %cn <%ce>%C(reset)%n%C(bold cyan)%s%C(reset)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment