gitcolorsdiffword-diff

How can I use `git diff --color-words` outside a Git repository?


How can I get output like in git diff --color-words, but outside Git?

Closest thing is wdiff -t, but it underlines/inverts things instead of using green/red colours and does not allow specifying my whitespace regex.


Solution

  • git diff --color-words --no-index old.txt new.txt