How to make git diff --ignore-space-change the default

前端 未结 6 1898

I could probably setup an alias, but it seems like I should be able to set this as an option in the config file, only I don\'t see anyway to do it.

I only want the <

6条回答
  •  暖寄归人
    2020-12-04 21:04

    Old question (2011), but now there's a shortcut git diff -w which stands for --ignore-all-space

    Ignore whitespace when comparing lines. This ignores differences even if one line has whitespace where the other line has none.

提交回复
热议问题