解决git警告

在git add出现

warning: LF will be replaced by CRLF in .idea/workspace.xml. The file will have its original line endings in your working directory
原因:windows中的换行符为 CRLF, 而在Linux下的换行符为LF,所以在执行add . 时会出现以下提示

解决:git config core.autocrlf false

posted @ 2020-02-26 15:49  WhyNot686  阅读(152)  评论(0)    收藏  举报