git warning: LF will be replaced by CRLF in 解决办法

windows中的换行符为 CRLF, 而在Linux下的换行符为LF,所以在执行add . 时会出现以下提示

warning: LF will be replaced by CRLF in pom.xml.
The file will have its original line endings in your working directory.

解决办法:

git config core.autocrlf false
    原文作者:Garfield
    原文地址: https://segmentfault.com/a/1190000009526905
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞