Git lf-will-be-replaced-by-crlf Git warns that LF line endings will become CRLF on a file next rewrite.
Reviewed for reference consistency: August 11, 2026
Code is Safe
SECUREGit has paused the operation to protect your code. No data has been lost or corrupted.
What To Know
Where Did It Fail?
Commands That Trigger This
Technical Background
The message is a policy notice, not a failure: the command succeeded, and the ending conversion is scheduled for whenever Git next rewrites the file. Nothing is lost — under autocrlf the repository-side content stays LF, and the warning simply says the two views will be reconciled.
It becomes noisy when the policy itself is inconsistent — half the team converts, half does not — or when renormalization was skipped after a .gitattributes change. The documented resolution runs through aligning the policy (autocrlf plus attributes) and renormalizing once, not through silencing individual warnings.
Underlying Causes
Frequently Asked Questions
No. The conversion happens the next time Git rewrites the file, not during the current command; the working copy keeps its current bytes meanwhile.
Yes — the check runs when files are staged or added, so brand-new files with LF endings trigger it under a CRLF policy.
Related Git States
Your sparse-checkout rules excluded all files, leaving your working directory empty.
Git cannot parse its configuration file due to a syntax error.
Your local branch contains commits that have not yet been pushed to the remote server.