git ignore file permission check

 A samba server is configured on linux, which is convenient to modify the code through ide on linux, and then I found a very annoying problem, that is, there is no modification permission, it can be modified after using the command chmod 777 filename, but using git status will find the file There is a modification in the path, use the git diff command to view the display as follows

    old mode 100644

    new mode 10755

Therefore, if you want to block git's checking of file permissions, you can use the following command to complete

    git config core.fileMode false

If you want to modify it back, just set

    git config core.fileMode true

Guess you like

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