git换行符LF与CRLF转换问题

xiaoxiao2021-02-28  133

使用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

完美解决换行符问题

转载请注明原文地址: https://www.6miu.com/read-26794.html

最新回复(0)