marcusshepp
8/21/2017 - 6:53 PM

git diff without white space

git diff without white space

git diff -w # ignores whitespace differences
# note that this will see no difference in "asc" and "a s c"

git diff --ignore-space-at-eol # ignores all space at the end of line
# this is most likely what you want.

# these options also work with git show
git show 2ert4d9 --ignore-all-space
git show 2ert4d9 --ignore-space-change