Git can't check out on Linux with LF a file that was stored with CRLF

前端 未结 3 1541
盖世英雄少女心
盖世英雄少女心 2021-01-24 02:56

I am checking out a third party project \"libjpeg\" from https://github.com/winlibs/libjpeg on Linux (it is just one example, actually I have the same problem with many other pr

3条回答
  •  甜味超标
    2021-01-24 03:21

    Old, but still correct answer about EOL-headache in Git

    In short:

    core.autocrlf = false 
    core.eol = native
    

    will produce correct EOLs on all and any mix of OSes

提交回复
热议问题