Files
30-seconds-of-code/snippets/line-endings.md
Angelos Chalaris 1397bb792e Deprecate expertise
2022-12-04 22:23:55 +02:00

528 B

title, tags, author, cover, firstSeen, lastUpdated
title tags author cover firstSeen lastUpdated
Configure line endings repository,configuration chalarangelo blog_images/leaves-read.jpg 2021-04-06T21:35:01+03:00 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