【问题标题】:How to prevent Composer from using global core.autocrlf config on Windows如何防止 Composer 在 Windows 上使用全局 core.autocrlf 配置
【发布时间】:2018-02-12 19:30:23
【问题描述】:

我在composer.json 文件中配置了一个私有 git 存储库。

我正在尝试从中获取一个包,但是我希望 composer 以 lf 行结尾签出存储库。

我想让我的全局 core.autocrlf 设置为 true。

有没有办法告诉作曲家在 autocrlf 设置为 false 的情况下运行 git clone 命令?

【问题讨论】:

    标签: git composer-php core.autocrlf


    【解决方案1】:

    我发现如果我添加

    * text eol=lf
    

    .gitattributes 正确签出

    【讨论】:

      猜你喜欢
      • 2010-12-01
      • 2017-12-01
      • 1970-01-01
      • 2015-04-16
      • 2013-03-10
      • 2012-08-17
      • 2022-10-21
      • 2012-04-08
      • 2011-09-09
      相关资源
      最近更新 更多