Files
30-seconds-of-code/git/s/line-endings.md
Angelos Chalaris 5c913d20bd Reorganize snippets
2023-05-03 21:19:02 +03:00

506 B

title, type, language, tags, author, cover, dateModified
title type language tags author cover dateModified
Configure line endings snippet git
repository
configuration
chalarangelo leaves-read 2021-04-13T21:10:59+03:00

Configures the line endings for a repository.

  • Use git config core.eol [lf | crlf] to configure the line endings.
  • lf is the UNIX line ending (\n), whereas crlf is the DOS line ending (\r\n).
git config core.eol [lf | crlf]
git config core.eol lf # Configured to use UNIX line endings