028 You are about to commit CRLF line separators to the Git repository.It is recommended to set the core. autocrlf Git attribute to true to avoid line separator issues If you choose Fix and Comit ,

028 You are about to commit CRLF line separators to the Git repository.It is recommended to set the core. autocrlf Git attribute to true to avoid line separator issues If you choose Fix and Comit , git config-global core. autocrlf true will be executed.If you choose Commit as Is , the config value won't be changed.Don't warn again

You are about to commit CRLF line separators to the Git repository.It is recommended to set the core. autocrlf Git attribute to true to avoid line separator issues If you choose Fix and Comit , git config-global core. autocrlf true will be executed.If you choose Commit as Is , the config value won't be changed.Don't warn again

mark

参考:

使用IDEA提交代码时提示You are about to commit CRLF line separators to the Git repository

git add . 的时候遇到warning: LF will be replaced by CRLF in ...... 解决办法

mark

解决方法:
git config --global core.autocrlf false

就可以解决了。

原因就是:

原因是路径中存在 / 的符号转义问题,false就是不转换符号默认是true,相当于把路径的 / 符号进行转义,这样添加的时候就有问题

mark

貌似解决了,没有再次报错

posted @ 2021-02-06 22:49  皿哥的技术人生  阅读(4452)  评论(0编辑  收藏  举报