Search code examples
gitphpstorm

Committed changes are not reflecting actual changes in GIT using PhpStorm


This happens sometimes or for some files, not all, in case I make small changes to a file, instead of showing that small portion as a change, git takes as the whole file is updated, as if all the lines are removed and rewritten.

For example of the following changes:

enter image description here

git shows the changes like this:

enter image description here

As we can see the whole file is changed.


Solution

  • The solution is to edit editorconfig and File | Settings | Editor | Code Style | Line separators.