I have just started working with WSL under Windows 10. Coming from *nix (primarily macOS), the WSL is very appealing to me and the lack of a proper *nix toolchain, what drove me away back in the day. But now I am back and attempting to get everything to work smoothly.
The recommendation is to set core.autocrlf to false, based on the blog post by Pete O'Shea.
This has somewhat worked for me on WSL1
$ git config --global core.autocrlf falseYou can checkout the value using:
$ git config --list --show-origin
...
file:/home/jonasbn/.gitconfig core.autocrlf=false
...For me it has always made sense to have core.autocrlf set to true, which contradicts the section above based on the blog post by Pete O'Shea.
$ git config --global core.autocrlf trueYou can checkout the value using:
$ git config --list --show-origin
...
file:/home/jonasbn/.gitconfig core.autocrlf=true
...- First-Time Git Setup
- my .gitconfig from my dotfiles repository
- Blog post by Pete O'Shea: Setup Git in WSL
- GitHub Community
- GitHub: help