cr-lf

Working notes on cr-lf: Here are the different settings and their effects, * core.autocrlf true (change for both - local and remote automatically), * core.autocrlf input (change only to input i.e. for remote), and * core.autocrlf off (change nothing).

Git core.autocrlf.

The core.autocrlf configuration in Git manages how line endings (CRLF for Windows and LF for Unix/macOS) are handled when committing and checking out files.

Here are the different settings and their effects

* core.autocrlf true (change for both - local and remote automatically)
  • On commit (input), line endings are modified to LF (Unix-style).
  • On checkout (output), line endings are modified to CRLF (Windows-style) on Windows systems.
* core.autocrlf input (change only to input i.e. for remote)
  • On commit (input), line endings are modified to LF.
  • On checkout (output), line endings are kept as they are, meaning there is no alteration on checkout.
  • This changes line endings to LF only for the remote repository.
* core.autocrlf off (change nothing)
  • On commit (input), line endings are not modified.
  • On checkout (output), line endings are not modified.
Updated: 2026 Aug 19