1

We are currently developing on both Windows and Unix like platforms. On Windows platforms we have the following settings:

core.eol = native
core.autocrlf = true

I'm considering moving away from CRLF eol and using LF on all platforms. What are the steps I should take to make that transition less troublesome?

I've read here that the following should be set in config:

$ git config core.eol lf
$ git config core.autocrlf input

But as I've read here these settings are from the old git system. We're are using version 1.9.4 and I believe we should be using .gitattributes file to set line endings.

Community
  • 1
  • 1
Max Koretskyi
  • 101,079
  • 60
  • 333
  • 488
  • I have simlar issue, in linux it use `LF` as default, but when switch to windows, some IDE always ask whether to convert `LF` to `CRLF`, that's bothering. – Eric Feb 19 '15 at 12:21
  • 1
    @EricWang, well, most IDE's can be configured to use a particular eol, for example IDEA editors can be configured to use LF as eol – Max Koretskyi Feb 19 '15 at 12:57

0 Answers0