git add project file changes

Problem description : The project was developed with eclipse before, and then migrated to IntelliJ IDEA. I used IntelliJ IDEA to submit the code once, and then when I switched to eclipse to submit the code, I used eclipse's git add index command to submit the entire project file.

Reason : This is due to the newline problem between IntelliJ IDEA and eclipse, IntelliJ IDEA will set autocrlf to true, and eclipse needs to be set to false. safecrlf is also set to false in eclipse

Figure 1: User Settings

 

Figure 2: git repository settings:

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325239936&siteId=291194637