git报错:The file will have its original line endings in your working directory
(该文件将在您的工作目录中有其原始的行尾)
git add .
是表示把当前目录下的所有更新添加至暂存区。有时在终端操作这个会提示:
warning: LF will be replaced by CRLF in ball_pool/assets/Main.js.
The file will have its original line endings in your working directory
解决方法:
git rm -r --cached .
git config core.autocrlf false
git add .
git commit -m '做的一些修改'