Git status shows files as changed even though contents are the same

I have resolved this problem using following steps

  1. Remove every file from Git’s index.

    git rm --cached -r .

  2. Rewrite the Git index to pick up all the new line endings.

    git reset --hard

Note that step 2 may remove your local changes.
Solution was part of steps described on git site
https://help.github.com/articles/dealing-with-line-endings/

Leave a Comment