git diff -U0 -w --no-color code example Example: I want to give a specific color to git git config --global color.ui auto