Git · Inspection

git diff --word-diff

Highlights changed words instead of whole lines, which is easier for prose.

Syntax
git diff --word-diff

Example

Example
git diff --word-diff README.md

More in this group

git blame -L git cat-file git count-objects git diff --check git diff --stat git for-each-ref git fsck git hash-object

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course