If this is common and the filemodes are not important for this project we can simply tell git to ignore this.
Default
git config core.filemode falseOnly for this project edit .git/config
[Core]
filemode = falseAnd in case we do need to check in single filemode changes the following works
git update-index --chmod=(+|-)x path/to/file
本文介绍如何禁用Git中的文件模式检查,适用于不需要关注文件权限变更的项目。文中提供了全局及特定项目的配置方法,并说明了如何更新单个文件的模式。
3万+

被折叠的 条评论
为什么被折叠?



