Quantcast
Channel: How do I force Git to use LF instead of CR+LF under Windows? - Stack Overflow
Viewing all articles
Browse latest Browse all 7

How do I force Git to use LF instead of CR+LF under Windows?

$
0
0

I want to force Git to check out files under Windows using just LF not CR+LF.
I checked the two configuration options, but was not able to find the right combination of settings.

I want to convert all files to have LF line breaks and keep the LF in the files.

Remark: I used autocrlf = input but this just repairs the files when you commit them.
I want to force it to get them using LF.

Probably I wasn't so clear:the repository is already using LF but the files checked out usingGit for Windows are using CR+LFand I want to force Git to get them with LF:forcing Unix line endings.

$ git config --list | grep crlfcore.autocrlf=input

Viewing all articles
Browse latest Browse all 7

Latest Images

Trending Articles





Latest Images