How to ignore whitespace in github when comparing?

前端 未结 3 2040
深忆病人
深忆病人 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条回答
  •  猫巷女王i
    2020-12-13 17:33

    On github, you simply append the w=1 parameter to the URL for it to ignore whitespace.

    That would look something like:

    https://github.com/account_name/repo/pull/14/files?w=1
    

提交回复
热议问题