When I do "git status", it lists many files as modified when in reality, they are not. It shows all lines as removed, and then the same lines are added again at end of the diff report.
I can use Windiff to check that files are exactly the same. In fact, I have been using git for months without problems and today, suddenly, has appeared this problem. I did not modified most of files from months ago.
I use Windows and SourceTree, but also git command line. Both show the same problem.
The first thing I tried is to discard all. Nothing happens, the "modified" files do not disappear. Then Revert, the same. Then, I though about some kind of corruption, so I deleted .git/index file and then, "git reset". The problem is now worst, I had 30 "modified" files, now I have "1360". I checked the hard disk and it is fine.
I cannot simply to clone it again from remote since I had local branches.
By the way, other repositories I have for other projects work fine.
My first concern is to know what is happening. I am totally lost.
UPDATE
It is not a problem with \r\n lines. I did not open any file. Windiff shows no differences. Also, I removed the branch, then I checked out it from the remote repository, and the "modified" files are still there, even after discard all changes or to revert them. Also, it is not just SourceTree, I am using Git from command line.