Github for windows changing line endings on commit
git, github
Solution
Drop to the command line instead of using Github for windows. MSysGit will follow more closely what is implemented for git by the maintainers of the main git source code.
git config --system core.autocrlf false
git config --system core.whitespace cr-at-eol
Don't let your version control system mess with your line endings unless it absolutely has to.
Problem
I have a developer that's works with me and randomly his files get changed to CRLF line endings. In github for windows it shows the correct change before commit, and when committed the line endings get changed and it shows a bad diff. This only happens randomly, but cant figure out why it is changing.