Disable git EOL Conversions

前端 未结 5 1117
醉梦人生
醉梦人生 2020-12-07 11:47

I am trying to get git to not change any line endings whatsoever for any operation. Unfortunately, it seems to do so not matter what. I have reduced it down to the followi

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-07 12:15

    I figured it out. It seems that the SCP program was converting the line endings. I noticed this when I tried deliberately making a file with LF endings and then observing that it appeared as CRLF when downloaded.

    Since this was the solution for me, I'm accepting this answer, but people of the future should also refer to the other answers for a more general solution.

提交回复
热议问题