Git: Diff per word or character

Posted . Visible to the public.

By default git diff highlights whole lines as changes.

To diff on a word-by-word basis you can say:

git diff --color-words

To diff on a character-by-character basis you can say:

git diff --color-words=.
Henning Koch
Keywords
added, removed, red, green
License
Source code in this card is licensed under the MIT License.
Posted by Henning Koch to makandra dev (2014-09-12 07:36)