Why do you always delete all and add all when giving diff?

  git, question

I don’t know what parameters git sets, files that others bring in, executegit diffAll will be deleted once and added again. What is the reason?

clipboard.png

clipboard.png

clipboard.png

By the way, can I reset the global settings of git? The configuration was retained after the git was reloaded.

I tested the configuration myself and found it was
clipboard.png
core.autocrlfIt was previously set to false, just delete his configuration.

In fact, there is another reason, is that I openedESLintWhen I save it, my vscode will automatically convert the end-of-line sequence of the file into LF, resulting in full deletion and full increase.