Skip to content

Instantly share code, notes, and snippets.

@Omerr
Last active August 21, 2026 16:53
Show Gist options
  • Select an option

  • Save Omerr/8134a61b56ca82dd90e546e7ef04eb77 to your computer and use it in GitHub Desktop.

Select an option

Save Omerr/8134a61b56ca82dd90e546e7ef04eb77 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"

@Thagichu

Copy link
Copy Markdown

Very Very useful command, Thanks for sharing this

@Taras-Ivashchuk

Taras-Ivashchuk commented Oct 1, 2024

Copy link
Copy Markdown

Tnank you!

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