git添加文件出现The file will have its original line endings in your working directory



原因:Git默认配置替换回车换行成统一的CRLF,报错的话,我们只需要修改配置禁用该功能即可。


git config --global core.autocrlf  false