Question: lf would be replaced by crlf in .gitignore?
Answer: autocrlf, git will reject the file. The variable can be set to "warn", in which case git will only warn about an irreversible conversion but continue the operation. ... When it is enabled, git will convert CRLF to LF during commit and LF to CRLF during checkout.