git/list[1] front-page[2] threads[3] people[4] search[5] about
 

EOL LF Windows auto.crlf issue

From
FKFilip Kucharczyk <fil.kucharczyk@gmail.com>
Date
Jun 24, 2017, 16:56 UTC
Message-ID
<CADtLFZcQNziGJx-aW9pvUU-NTHcbRN8pHXecMtRgaYwqTjGZWQ@mail.gmail.com>

I'm on Windows 10. auto.crlf in .gitconfig is set to [core] autocrlf = true I've got a git (git version 2.13.1.windows.2) repo. A linux guy emails me a text with with line endings LF. I paste this file into my repo. Now every time I introduce changes to this file and stage it, git tell me: "warning: LF will be replaced by CRLF in a.txt. The file will have its original line endings in your working directory." But when I commit the file git does not replace anyline endings - they stay LF in the commited file and in my working direcotry. I'm sort of misleaded by this message.

Filip
Next: Torsten Bögershausen
Message 1 of 2 in “EOL LF Windows auto.crlf issue”
  1. Filip KucharczykJun 24, 2017
  2. Torsten BögershausenJun 24, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.