How to ignore whitespace in github when comparing?

前端 未结 3 2035
深忆病人
深忆病人 2020-12-13 16:49

I have committed a file after prettifying it in sublime. Now when I am comparing the differences in github web ui it\'s showing a lot of changes, so it is very difficult to

3条回答
  •  一生所求
    2020-12-13 17:24

    git diff -w (alternately git diff --ignore-all-space) ignores whitespace. You can also add --ignore-blank-lines if there are a lot of those.

    For more details and many more options, check out the docs.

提交回复
热议问题