TIL How to diff two local files
Use git diff
with the --no-index
flag:
1git 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: