Git - line breaking problem between different Operating Systems

Asked

Viewed 484 times

2

I’m trying to fix a problem concerning Git, it’s a line break problem in files that were uploaded 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 run the command git diff, only one altered line appears.

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

Has anyone ever been through this problem and managed to solve it? Any tips?

  • See if it helps you: http://answall.com/q/44373/101

1 answer

1

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.