Git under WSL shows all files as modified

Tobias Etzold • August 9, 2022

git linux wls

Caused by different line endings, there is a chance that git under WSL falsely flags files as modified. Under Linux there is typically LF als line ending where under Windows CR+LF is beeing used. With the following command you can set git to always use CR+LF in the global config file.

$ git config --global core.autocrlf true