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 web development

Do you need DevOps-experts?

Your development team has a full backlog? No time for infrastructure architecture? Our DevOps team is ready to support you!

  • We build reliable cloud solutions with Infrastructure as code
  • We are experts in security, Linux and databases
  • We support your dev team to perform
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)