I don’t know what parameters git sets, files that others bring in, executegit diff
All will be deleted once and added again. What is the reason?
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
core.autocrlf
It was previously set to false, just delete his configuration.In fact, there is another reason, is that I opened
ESLint
When 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.