Forked from tjsudarsan/Change CRLF to LF to all Files.md
Created
May 23, 2023 09:13
Revisions
-
tjsudarsan revised this gist
Jul 22, 2019 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,6 +2,8 @@ ### Execute the following commands in your root of your project folder ## NOTE: Do not do the following steps without commiting your data. As it clears all the git cache and it will clear all your changes in your project. 1. First disable the autoCRLF in the git config by running the following command in your terminal `git config core.autocrlf false` -
tjsudarsan created this gist
Jun 24, 2019 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ # Converting the End of Line Sequence from CRLF to LF in any of your project files ### Execute the following commands in your root of your project folder 1. First disable the autoCRLF in the git config by running the following command in your terminal `git config core.autocrlf false` 2. Then remove the cached files in the git. Run the following command: `git rm --cached -r .` 3. Then reset the project files by executing the following command to complete conversion. `git reset --hard` That's it now all the files that have CRLF will be converted to LF. Additionally you can add `"files.eol": "\n"` in your Vscode settings.