What can happen: formatting with redundant white space characters, especially in cross-platform situations;
Switch the input method and re-enter the command in English.
Or alternatively set core. Autocrat lf=false
git config --global core.autocrlf false
Copy the code
Then git add. commits the code