Git - line break problem between different Operating Systems

2

I'm trying to fix a problem with Git, it's a line break problem in files that were sent from a DOS-based operating system and later changed into a UNIX-based OS.

What happens: When I change 'n' lines in my Linux OS, for example, the file: "models.py", and I run the command git diff , only one line appears changed.

This problem is due to the line break of the OSs being different ...

Has anyone ever had this problem and been able to solve it? Any tips?

    
asked by anonymous 09.12.2015 / 23:41

1 answer

1

Systems recognize line breaks in different ways. You can set a default in the file itself in the settings, the line break of the systems may be different.

    
10.12.2015 / 00:41