How do I make
git status
ignore line ending differences?
Background info:
I use randomly Windows and Linux to work on the project. The project is in Dropbox.
I found a lot about how do make git diff ignore line endings. Since i use meld git diff opens meld for each file. And meld says "identical file".
So how do I avoid this. Git should only open meld for changed files. And git status should not report files as changed if only the file ending is different.
EDIT: Cause:
This happened because of this setting on Windows
core.autocrlf true
So I checked out the working copy on Linux and set core.autocrlf false on Windows.
It would be still nice to know how to make git status ignore different new lines.
Try setting core.autocrlf value like this :
git config --global core.autocrlf true