Before proceeding, commit all your changes. The following steps will clear the Git cache, which will remove any uncommitted changes from your project.
By default, Git may automatically convert line endings. Disable this behavior by running:
git config core.autocrlf false
To ensure Git reprocesses the files with the correct line endings, remove all cached files:
git rm --cached -r .
Reset the working directory to reflect the correct changes:
git reset --hard
If you're using Visual Studio Code, enforce LF endings by adding the following setting:
"files.eol": "\n"
This can be added to your settings.json file in VS Code to ensure future files use LF.
After completing these steps, all files that previously had CRLF endings will now use LF.