7

Convert all LF to CRLF

or

Convert all CRLF to LF?

UGH.

Comments
  • 0
    First 🙃
  • 0
  • 1
    When working with certain Windows legacy software (e.g. notepad 😀) use git core.autocrlf=true on Windows and core.autocrlf=input everywhere else to let git fix line endings automatically on commit/checkout. Otherwise convert to LF once and be happy.
  • 4
    Crlf --> lf and never use notepad
  • 0
    Depends what platform you're targeting. If it's a Microsoft technology, keep the CR-LF.
  • 0
    Use LF, CRLF is a pain in the ass outside Windows, while LF is supported by many Windows things too
  • 0
    git config --global core.autocrlf input
    # Configure Git on OS X or Linux to properly handle line endings

    git config --global core.autocrlf true
    # Configure Git on Windows to properly handle line endings

    *Stolen from within documentation
  • 0
    @keibak however if you want to compile llvm with CMake+Make, it will break with CRLF. Line endings are a pain in the ass
  • 0
    Thanks y'all.
Add Comment