ProbableOdyssey | Blake Cook

TIL How to diff two local files

· 1 min read · 55 words

Use git diff with the --no-index flag:

git diff [<options>] --no-index [--] <path> <path>

Previously I’ve found this useful for when comparing ML configuration files where one is a modified copy of another.

One of the comments in the Stack Overflow answer mentions the --word-diff flag as well, which prints more detailed diffs.

Reference:

Reply to this post by email blZake@proZbableodyssey.blog (remove Z characters) ↪