Skip to content

Instantly share code, notes, and snippets.

@konstantin-hatvan
Created July 28, 2019 15:21
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 konstantin-hatvan/6570a1e390a161ef34cb552b74a0aa31 to your computer and use it in GitHub Desktop.
Save konstantin-hatvan/6570a1e390a161ef34cb552b74a0aa31 to your computer and use it in GitHub Desktop.
git lg
# variation of https://gist.github.com/johanmeiring/3002458
# Changes order of output tokens so that the commit messages all start at the same line depth
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset %s %C(yellow)%d%Creset %Cgreen(%cr)%Creset %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