-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
  • 148,457
  • 42
  • 363
  • 369
Sakibur Rahman
  • 724
  • 1
  • 8
  • 23

1 Answers1

0

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

Sakibur Rahman
  • 724
  • 1
  • 8
  • 23