Last Updated: February 25, 2016
·
2.798K
· tair

git lg alias - better view of git log

The Git alias below shows a concise, coloured Git log that is so much easier to read.

Open your ~/.gitconfig and add the following alias:

[alias]
  lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)

Try it with git lg from any Git repository.

2 Responses
Add your response

Hmmm

over 1 year ago ·

The code is missing a closing single quote at the end.

over 1 year ago ·