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 money motivation

Opscomplete powered by makandra brand

Save money by migrating from AWS to our fully managed hosting in Germany.

  • Trusted by over 100 customers
  • Ready to use with Ruby, Node.js, PHP
  • Proactive management by operations experts
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)