今天在使用git add 命令时出现了下面错误:
warning: CRLF will be replaced by LF in gwmdms/templates/roles_manage/index.html.
The file will have its original line endings in your working directory.
解决方法:
git config --global core.autocrlf false
就可以解决了。
原因就是:
路径中存在 / 的符号转义问题,false就是不转换符号默认是true,相当于把路径的 / 符号进行转义,这样添加的时候就有问题