There's more...

The color.ui configuration works with a long range of Git commands, diff, log, and branch included. The following is an example of git log when setting color.ui to true:

$ git log --oneline --decorate --graph
* c111003 (HEAD -> master, origin/master, origin/HEAD) Update foo and bar
* 270e97b Add bar
* 43fd490 Initial commit, adds foo

Get Git Version Control Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.