by codedokode · 4y ago · 0 comments
I think the core.autocrlf option in Git is more harmful than useful (for example, it can change file hashes and break something) and should be removed. An option to warn about unwanted \r characters on commit might be useful though.
Nowadays, I am willing to agree with you. It breaks more things than fixes them.
autocrlf = input
Then change your editors and IDEs to save files with LF line endings (preferably with something like .editorconfig) and you'll have fewer problems.