Git Browsing the history Colorize Logs


Example

git log --graph --pretty=format:'%C(red)%h%Creset -%C(yellow)%d%Creset %s %C(green)(%cr) %C(yellow)<%an>%Creset'

The format option allows you to specify your own log output format:

ParameterDetails
%C(color_name)option colors the output that comes after it
%h or %Habbreviates commit hash (use %H for complete hash)
%Cresetresets color to default terminal color
%dref names
%ssubject [commit message]
%crcommitter date, relative to current date
%anauthor name