Setting the config does not change the file, it only changes the line endings when you add and checkout. You should run dos2unix (or similar) to fix then add and commit.