Git diff -w ignore whitespace only at start & end of lines

For end of line use:

git diff --ignore-space-at-eol

Instead of what are you using currently:

git diff -w (--ignore-all-space)

For start of line… you are out of luck if you want a built in solution.

However, if you don’t mind getting your hands dirty there’s a rather old patch floating out there somewhere that adds support for “–ignore-space-at-sol”.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)