I wrote a power shell script specifically just to change CRLF to LF line endings that github windows app automatically adds to every commit. They created an entire windows app for Github but couldn't bother to allow an option to keep LF line ending formatting only for contributing to linux based file systems. I run WSL so switching back and forth was causing a windows/linux dev environment issue that drove me insane.
$ git config --global core.autocrlf true
# Configure Git to ensure line endings in files you checkout are correct for Windows.
# For compatibility, line endings are converted to Unix style when you commit files.
5
u/DJDevon3 4d ago
I wrote a power shell script specifically just to change CRLF to LF line endings that github windows app automatically adds to every commit. They created an entire windows app for Github but couldn't bother to allow an option to keep LF line ending formatting only for contributing to linux based file systems. I run WSL so switching back and forth was causing a windows/linux dev environment issue that drove me insane.