bluehost-banner

How to fix LF will be replaced by CRLF in Git Windows

In this tutorial, we will learn How to fix LF that will be replaced by CRLF in an issue in Git for Windows machines.


Problem :

$ git add .
warning: LF will be replaced by CRLF 


Solution:

git config --system core.autocrlf false # Per-System solution
git config --global core.autocrlf false # Per-User solution
git config --local core.autocrlf false # Per-project solution