git: How do I get rid of “warning: CRLF will be replaced by LF” without disabling safecrlf?

前端 未结 4 1349
情歌与酒
情歌与酒 2020-12-12 22:06

I\'m new to git, and I\'ve read a lot about line endings and how git treats them. I\'m on Windows by the way. I have made a .gitattributes file and set for exam

4条回答
  •  Happy的楠姐
    2020-12-12 22:26

    The short answer to your question is NO.

    Because, basically, core.safecrlf setting controls "warning level":

    • false - proceed without warning
    • warn - proceed with warning
    • true - don't proceed

    So, you have to choose option that suits you the most.

提交回复
热议问题