Github for line ending windows

I have a developer who works with me, and his files are randomly changed to the end of the CRLF lines.

In github for windows, it shows the correct change before committing, and when fixing the endings, the lines change and shows a bad diff.

This happens only randomly, but cannot understand why it is changing.

+4
source share
3 answers

Go to the command line instead of using Github for windows. MSysGit will more closely monitor what is implemented for git for the accompanying main git source code.

git config --system core.autocrlf false git config --system core.whitespace cr-at-eol 

Do not let your version control system work with line endings if this is not necessary.

+6
source

As mentioned in the section " gaps on the line of Android and git ":

0
source

v1.0.7 will take care of this. Here is a good article .

0
source

All Articles