git add . 时提示的警告信息如下:
warning: LF will be replaced by CRLF in core/data/log/userinfo_20160322.log.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in core/data/log/userinfo_20160324.log.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in core/data/log/userinfo_20160325.log.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in index/Runtime/Logs/16_10_22.log.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in statics/js/jquery-qrcode/README.md.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in statics/js/jquery-qrcode/bower.json.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in statics/js/jquery-qrcode/examples/demo.html.bak.
The file will have its original line endings in your working directory.
解决方法:
1、删掉刚刚创建的.git文件夹
rm -rf .git
2、把core.autocrlf 设置成false
git config --global core.autocrlf false
3、重新加入git
git add .
问题解决