对我们来说,最好是禁用换行转换符的功能。我用 cygwin 提交代码,提交时总提示自动转换换符。其实都不用提交,仅运行 git status 看有没有提示就知道了。 也是在网上找了一圈,一些建议是运行下面的命令: git config --global core.autocrlf false git config --global core.saftcrlf true 如果不运行命令,直接编...
Git Windows 禁止自动转换换行符 \n 到 \r\n geyite Dec 30, 2018 运行如下命令: gitconfig --global core.autocrlffalsegitconfig --global core.eol lf 接下来git clone的仓库就保持\n换行符了。 Comments Sign Into comment