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

git config core.autocrlf false
相關文章
相關標籤/搜索