Windows Convert CRLF to LF

Print Friendly, PDF & Email

Git Repos to LF

Firstly lets make sure that everything line of code that you commit is unix compatible, since all of it mostly runs on Unix based servers. Hence do the following

  1. git config --global core.autocrlf input
  2. git config --global core.eol lf

If you don’t know where to make the changes, since the gitconfig files are all over the place, find the source of the file using

git config --list --show-origin

Then go to those files and change the settings for autocrlf and eol.

Leave a Reply

Your email address will not be published. Required fields are marked *