git换行符LF与CRLF转换问题

来源:互联网 发布:java jdk 1.6 for mac 编辑:程序博客网 时间:2024/05/23 21:54

使用git add 的时候报错

  • 问题描述
  • warning: LF will be replaced by CRLF in .editorconfig.

1. 临时解决方案

git config –global core.autocrlf false
git config –global core.safecrlf true
2. 永久解决方案
在git本地仓库(.git)中找到config文件,使用Notepad ++打开, 在[core]配置项中添加:

autocrlf = false

完美解决换行符问题

1 0
原创粉丝点击