Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
Replaced [msysgit] with [git-for-windows]. (See https://stackoverflow.com/tags/msysgit/info.) Added [newline] [carriage-return] [linefeed], which all describe what the question is about.
Source Link
Henke
  • 5.9k
  • 6
  • 41
  • 54

How do I force gitGit to use LF instead of CR+LF under windowsWindows?

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

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

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

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

>git$ git config --list | grep crlf core.autocrlf=input 

How do I force git to use LF instead of CR+LF under windows?

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

I want it to convert all files to LF and keep the LF on 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 using msysgit are using CR+LF and I want to force msysgit to get them with LF:  forcing Unix line endings.

>git config --list | grep crlf core.autocrlf=input 

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

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 using Git for Windows are using CR+LF and I want to force Git to get them with LF:  forcing Unix line endings.

$ git config --list | grep crlf core.autocrlf=input 
edited body
Source Link
rogerdpack
  • 67.7k
  • 40
  • 291
  • 410

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

I want it to convert all files to LF and keep the LF on 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 using msysgit are using CR+LF and I want to forgeforce msysgit to get them with LF: forcing Unix line endings.

>git config --list | grep crlf core.autocrlf=input 

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

I want it to convert all files to LF and keep the LF on 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 using msysgit are using CR+LF and I want to forge msysgit to get them with LF: forcing Unix line endings.

>git config --list | grep crlf core.autocrlf=input 

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

I want it to convert all files to LF and keep the LF on 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 using msysgit are using CR+LF and I want to force msysgit to get them with LF: forcing Unix line endings.

>git config --list | grep crlf core.autocrlf=input 
added the current output of git config
Source Link
sorin
  • 172.9k
  • 194
  • 582
  • 861

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

I want it to convert all files to LF and keep the LF on 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 using msysgit are using CR+LF and I want to forge msysgit to get them with LF: forcing Unix line endings.

>git config --list | grep crlf core.autocrlf=input 

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

I want it to convert all files to LF and keep the LF on 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 using msysgit are using CR+LF and I want to forge msysgit to get them with LF: forcing Unix line endings.

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

I want it to convert all files to LF and keep the LF on 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 using msysgit are using CR+LF and I want to forge msysgit to get them with LF: forcing Unix line endings.

>git config --list | grep crlf core.autocrlf=input 
edited title
Link
sorin
  • 172.9k
  • 194
  • 582
  • 861
Loading
added 10 characters in body
Source Link
sorin
  • 172.9k
  • 194
  • 582
  • 861
Loading
added 196 characters in body
Source Link
sorin
  • 172.9k
  • 194
  • 582
  • 861
Loading
Source Link
sorin
  • 172.9k
  • 194
  • 582
  • 861
Loading