在window7下使用git的时候,使用提交添加命令 1 git add readme.txt 产生如下报错: 1 2 warning: LF will be replaced by CRLF in readme.txt. The file will have its original line endings in your working directory. 解决办法: 删除已经创建好的版本: 1 rm -rf .git 复制如下命令,回车: 1 git config --global core.autocrlf false 重新创建git,添加,提交。