【问题标题】:after git push not changing the permission of a directory?git push 后不更改目录的权限?
【发布时间】:2017-01-17 10:14:09
【问题描述】:

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

那么如何在不更改特定文件夹权限的情况下从 git 忽略文件或目录。

提前致谢!! 在 laravel 5 中

【问题讨论】:

    标签: git laravel-5 file-permissions


    【解决方案1】:

    这将告诉 git 忽略权限:

    git config core.filemode false
    

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

    【讨论】:

    • 还有其他方法吗??
    • 这是固定的方式。你可以改变 chmod 但它会影响防火墙
    猜你喜欢
    • 1970-01-01
    • 2020-11-01
    • 2016-05-21
    • 2011-09-13
    • 1970-01-01
    • 2012-04-23
    • 1970-01-01
    • 2015-02-11
    • 2015-12-03
    相关资源
    最近更新 更多