Question: commit failed with error lf will be replaced by crlf?
Answer: 8 Answers. warning: LF will be replaced by CRLF. ... Use this setting if you want to have CRLF line endings in your working directory even though the repository does not have normalized line endings. As described in "git replacing LF with CRLF", it should only occur on checkout (not commit), with core.