git 的eslit的错误问题

69 阅读1分钟

1.git在提交时,假如结束符crlf 转换成lf时,在签出代码时lf转换成crlf。用core.autocrlf来打开此功能。如果在windows系统上,设置成true. 这样当签出代码时,,lf会被转成crlf。 在 git bash 命令窗口输入 git config --global core.autocrlf input //core.autocrlf后跟三个参数,分别为 true, input false :具体选择什么参数要看具体项目的实际要求 git config --global core.autocrlf true 运行gulp build时报错:error Expected linebreaks to be 'LF' but found 'CRLF' linebreak-style - 灰信网(软件开发博客聚合) (freesion.com)文章具体介绍