Read more

Git: Diff per word or character

Henning Koch
September 12, 2014Software engineer at makandra GmbH

By default git diff highlights whole lines as changes.

Illustration UI/UX Design

UI/UX Design by makandra brand

We make sure that your target audience has the best possible experience with your digital product. You get:

  • Design tailored to your audience
  • Proven processes customized to your needs
  • An expert team of experienced designers
Read more Show archive.org snapshot

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=.
Posted by Henning Koch to makandra dev (2014-09-12 09:36)