git diff(1) -w %7C git apply --cached --ignore-whitespace
Show changes between commits, commit and working tree, etc
-w, --ignore-all-space
    Ignore whitespace when comparing lines. This ignores differences even if one line has whitespace
    where the other line has none.
Show changes between the working tree and the index or a tree, changes between the index and a tree,
changes between two trees, or changes between two files on disk.
source manpages: git-diff