Why do you always delete all and then add all when you git diff?

I don"t know what parameters are set by git. If you execute git diff , you will delete all the files taken by others and add them again. What is the reason?

clipboard.png

clipboard.png

clipboard.png

by the way, can I reset the global settings for git? The configuration remains after reinstalling git.

Git
Jul.09,2022

tested the configuration myself and found that
clipboard.png
core.autocrlf was previously set to false. Just delete his configuration.

In fact, another reason is that I have opened ESLint . When I save it, my vscode will automatically convert the end-of-line sequence of the file to LF, which will cause all deletions and additions.

Menu