Skip to content

Instantly share code, notes, and snippets.

@charlesfrye
Forked from Omerr/git lol.md
Created December 6, 2023 02:34
Show Gist options
  • Save charlesfrye/5a036d8a66c52b825a67c67d75479a59 to your computer and use it in GitHub Desktop.
Save charlesfrye/5a036d8a66c52b825a67c67d75479a59 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