how to avoid git-apply changing line endings

后端 未结 3 1754
忘了有多久
忘了有多久 2021-02-08 03:56

I have a git repo set with core.eol=crlf, core.autocrlf=true and core.safecrlf=true.

When I apply a patch from another crlf<

3条回答
  •  甜味超标
    2021-02-08 04:28

    I would not allow my source control system to control my line endings. Auto crlf is false and showing diffs without the annoying ^M is done by setting core.whitespace to cr-at-eol. Now diff output will be nicer to read.

提交回复
热议问题