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:

#comparison #customization #version-control #cli #machine-learning #file-comparison #difference-analysis #git #configuration-management #software-engineering #command-line #productivity

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

Comments

Leave a comment

Markdown is supported. Your email is private and only used if you'd like a reply.