hexo LF will be replaced by CRLF 错误

今天用hexo deploy 到github和coding,发现如下错误。

1
2
warning: LF will be replaced by CRLF in tags/wechat/index.html.
The file will have its original line endings in your working directory.

看到网上资源很少,这边做个记录。
解决方式为:

  • 删除.deploy_git 目录
  • git config –global core.autocrlf false
  • hexo clean
  • hexo g
  • hexo d
注: 转载请注明出处,本文作者为 Liecol Gao, 本文标题为 hexo LF will be replaced by CRLF 错误