What's the best CRLF (carriage return, line feed) handling strategy with Git?

后端 未结 9 1947
青春惊慌失措
青春惊慌失措 2020-11-22 07:30

I tried committing files with CRLF-ending lines, but it failed.

I spent a whole work day on my Windows computer trying different strategies and was almost drawn to s

9条回答
  •  庸人自扰
    2020-11-22 08:29

    Don't convert line endings. It's not the VCS's job to interpret data -- just store and version it. Every modern text editor can read both kinds of line endings anyway.

提交回复
热议问题