Git: Use --color-words
for diff by default
Git supports showing colored diffs inline by the --color-words
flag:
$ git diff --color-words
This is often easier to follow than the standard plus-minus format. To make this the default you can:
$ git config --global color.diff always
Which will result in the following in your gitconfig:
[color]
diff = always