← Useful Tips
GitGit

git diff --word-diff: Inspect text changes word by word

Use git diff --word-diff to inspect text changes word by word. It makes version-control work faster and reduces avoidable mistakes.

git diff --word-diff

Why it helps

Use git diff --word-diff to inspect text changes word by word. It makes version-control work faster and reduces avoidable mistakes.

How to use it

  1. Open the relevant app or terminal.
  2. Use the shortcut or command above in the relevant context.
  3. Check the result; for commands that change data, test on a small example first.
People also search for
git diff --word-diff: Inspect text changes word by wordgit diff --word-diffinspect text changes word by wordhow to inspect text changes word by wordGit inspect text changes word by word

Related tips