git, whitespace errors, squelching and autocrlf, the definitive answers

后端 未结 3 1563
野的像风
野的像风 2020-12-13 08:49

Please can you explain about whitespace errors in git, what do they mean, what is \'squelching\', and do I need to worry about it?

(Running msysgit, but with other u

3条回答
  •  攒了一身酷
    2020-12-13 09:31

    After searching for that answer as well and looking into both the git-config and git-apply manuals, I found that

    git config apply.whitespace nowarn
    

    deactivates showing the whitespace errors in your current repository.

    To make it available for all the repositories just add --global like this:

    git config --global apply.whitespace nowarn
    

提交回复
热议问题