inhuman-cpc.github.io icon indicating copy to clipboard operation
inhuman-cpc.github.io copied to clipboard

Git ignorecase on Mac

Open SiZapPaaiGwat opened this issue 5 years ago • 0 comments

默认忽略文件名大小写,这样在 Mac 下 build 没问题,到了服务器(Linux)上 build 出错。 看了下项目的 .git/config 文件 [core] 配置

[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
        ignorecase = true
        precomposeunicode = true

ignorecase 改为 false ,git status 便可展示文件变动。

另外推荐使用 case-sensitive-paths-webpack-plugin 这样在开发阶段提前暴露文件名大小写问题。

SiZapPaaiGwat avatar Oct 20 '18 05:10 SiZapPaaiGwat