-1

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.

LazyOne
  • 158,824
  • 45
  • 388
  • 391
Sakibur Rahman
  • 834
  • 3
  • 10
  • 26

1 Answers1

0

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

Sakibur Rahman
  • 834
  • 3
  • 10
  • 26