git 忽略文件权限修改
# 当前版本库
git config core.fileMode false
# 所有版本库
git config --global core.fileMode false
设置全局可能会报错
warning: core.filemode has multiple values
error: cannot overwrite multiple values with a single value
Use a regexp, --add or --replace-all to change core.fileMode.
添加 --add 解决
git config --global --add core.fileMode false
查看是否成功
cat .git/config
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = true