How to make git ignore changes to working-tree file permissions

Every time run git status sees a bunch of different file permissions, it’s annoying. Do we have some method to make git ignore the permissions change?

1. Modify the config configuration of git

$ cat .git/config
    repositoryformatversion = 0
    filemode = false   # set the filemode attritube to false
    bare = false
    logallrefupdates = true

2. Ignore git file permission changes in the work directory

$ git config core.filemode false

Now, it should woks.