git diff View file modification prompts "old mode 100644" and "new mode 100755"

When executing git diff to view the file modification, the prompt is as follows

The content of the file has not been modified. The reason for this problem is that the permission of the file has been modified, and the filemode of the file has changed, such as the execution of the chmod command.

Solution:

Switch to the root directory of the project, execute the following command, and ignore the change of filemode

 git config --add core.filemode false

Guess you like

Origin blog.csdn.net/qq_36611673/article/details/130510448