git中可以加入忽略文件权限的配置,具体如下: $ git config core.filemode false 这样就设置了忽略文件权限。查看下配置: $ cat .git/config 转载于:https://www.cnblogs.com/limonyun/p/9791400.html