Ignore whitespace on Git diffs

By default, git’s diff (git diff or on Github) show whitespace changes as well as meaningful changes.

To suppress them in git diff, add the -b flag:

git diff -b

To suppress on github.com, append ?w=1 to any diff’s URL.

Home | Back to blog