Git diff command showing entire file is modified instead of showing modified small part of code

前端 未结 5 951
旧巷少年郎
旧巷少年郎 2021-02-07 02:02

I am using git repository. Everything is working properly except git diff command. Whenever I modify any file then git diff command showing entire file is modified even though I

5条回答
  •  旧巷少年郎
    2021-02-07 02:54

    Try checking the files encoding. It seems that files with the same content but different encoding are marked as totally different.

提交回复
热议问题