Git CRLF changes showing up in git status

前端 未结 2 1677
遇见更好的自我
遇见更好的自我 2021-01-13 15:35

I know there are a ton of questions/answers similar to this one, however I could not find a specific answer to this problem. We are a .net shop and are using git.

I

2条回答
  •  攒了一身酷
    2021-01-13 15:50

    You can try and test the -crlf attribute in your .gitattributes file:

    *.cs -crlf
    

    The .gitattributes man page also mentions -text, but that would make your source files as binary (no diff).

    Otherwise, core.eol are directives to use to control eol style.
    It is more precise than core.autocrlf, which is presented here.

提交回复
热议问题