git add . 命令下转义字符导致的错误解决

刚才输入git add .命令出现如下错误

warning: LF will be replaced by CRLF in ......  
The file will have its original line endings in your working directory.  

解决方法一

运行命令

git config --global core.autocrlf false

解决方法二

换用以下命令

git add -A
或者

git add -all

END