Skip to content

Instantly share code, notes, and snippets.

@jasondavis
Forked from Omerr/git lol.md
Created May 29, 2023 02:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasondavis/a1a685971aaa94ed1e03102c928aedec to your computer and use it in GitHub Desktop.
Save jasondavis/a1a685971aaa94ed1e03102c928aedec to your computer and use it in GitHub Desktop.
git lol - an alias to Git that shows the commit graph in a pretty format

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

To configure as an alias git lol:

git config --global alias.lol "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment