News for hackers. Stuff that matters.
Re:Git log – The good parts by knux on Monday March 26, 2018 @12:13PM (#16679944)
You can still add color when not piping or writing to a file with `--color=auto`.

      git config --global alias.lg "log --color=auto --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'"
Re:Git log – The good parts by yes_or_gnome on Monday March 26, 2018 @12:25PM (#16680048)
This is likely to be said, "`--color=auto` is the default setting, so it's not needed." However, it's good to include it here because some users may have changed their default configuration to disable colors. This way `git log` works as their standard workflow and `git lg` for when they need a bit of color.