Git diff tool shows partial changes but commits a full file change

已回答

When I commit a change in any file, the diff tool of Intellij IDEA Community Edition shows only the changes I made. After the commit when I make "git diff " it shows that a have changed the whole file, which makes the merge with other changes in those same files a huge problem.
Can anyone help?

0
Avatar
Permanently deleted user

This was really helpful. Thanks. 

According to the workarounds that you provided Is it going to solve my problem If I just update git to 2.21 and leave autocrlf true or do I have to change autocrlf to false also?

0

Updating to 2.21 is enough to stop git from renormalizing line endings in the files when committing from IntelliJ.

If you update git, there is no need to change autocrlf setting.

1
Avatar
Permanently deleted user

Great. Thanks a lot !!

0

请先登录再写评论。