git push 后不改变目录的权限?

after git push not changing the permission of a directory?

我也使用 .gitignore 将其从项目中排除,但它会将目录的权限更改为 /Public/example/

那么如何在推送时忽略来自 git 的文件或目录而不更改特定文件夹的权限。

提前致谢!! 在laravel 5

这将告诉 git 忽略权限:

git config core.filemode false

http://www.ivankristianto.com/git-ignore-file-permission/