Skip to content

Instantly share code, notes, and snippets.

@practicalli-johnny
Last active December 11, 2015 19:29
Show Gist options
  • Save practicalli-johnny/4649149 to your computer and use it in GitHub Desktop.
Save practicalli-johnny/4649149 to your computer and use it in GitHub Desktop.
Git configuration for visualising git log and the commit graph
[alias]
lol = log --pretty=oneline --abbrev-commit --graph
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --all
lgl = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ci) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment