首页 > 解决方案 > Git自动将html文件lf转换为crlf

问题描述

当 git push 文件时,所有 html 都被转换了,只有 html 文件,Git 将 LF 转换为 CRLF

我的 git 配置:

$ git config --global --list
user.email=xxx@163.com
user.ename=Jarrem
core.longpaths=true
core.quotepath=false
core.filemode=false
core.autocrlf=input
core.safecrlf=false

我的想法配置:

Line separator : Unix and OS(\n)

标签: gitnewlinecore.autocrlf

解决方案


推荐阅读