Answer the question
In order to leave comments, you need to log in
Is the message "LF will be replaced by CRLF in" important or can it be ignored?
Hi all! Help me deal with this Git message ... as I understand it, this question is asked by everyone who has just begun to study it and I am no exception) I understood, read, but it seems that I only got more confused about what is being converted into and, in general, should I pay attention to it Attention.
The thing is, I'm working on Windows 7, using Git Bash... and I created a .gitignore file in Git Bash itself . As I understand it, Git Bash is a Linux console, so it creates files with LF.
So when I ran git add , I got this warning: warning: LF will be replaced by CRLF in .gitignore.
I tried to figure it out on my own, I tried as in the documentation I wrote autocrlf = truebut the message still appears.
Therefore, please help me figure it out ... for example, if I plan to work on a cross-platform project, should I pay attention to this message and did I write autocrlf = true correctly (if not, how would it be correct)?
Answer the question
In order to leave comments, you need to log in
There is no right one, it all depends on what you want. What line separators do you want to see in the repository? There are several options, lf, crlf, cr, or do not convert, but write as is. Now you have chosen to convert to crlf, so if git detects other line breaks, it will automatically convert them, which is what it writes about in the message.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question