errickson.net
Back to Blog

Ignore whitespace on Git diffs

#git #github #terminal

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.


Back to Blog