git add . 提交时报错warning: LF will be replaced by CRLF in .gitignore.

$ git add .
warning: LF will be replaced by CRLF in .gitignore.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in package.json.
The file will have its original line endings in your working directory.

如果你是Windows程序员,且正在开发仅运行在Windows上的项目,可以设置false取消此功能,把回车符记录在库中:

$ git config --global core.autocrlf false

具体可以参考:http://blog.csdn.net/feng88724/article/details/11600375

你可能感兴趣的:(工具使用,git)