当前位置: 代码迷 >> 综合 >> Git使用出现warning: LF will be replaced by CRLF 的完美解决办法
  详细解决方案

Git使用出现warning: LF will be replaced by CRLF 的完美解决办法

热度:71   发布时间:2023-12-24 23:43:38.0

Huang Rong@DESKTOP-O2VRRQO MINGW64 ~/Documents/git/testgit (master)
$ git add test.txt
warning: LF will be replaced by CRLF in test.txt.
The file will have its original line endings in your working directory

1
2
3
4
5
出现warning: LF will be replaced by CRLF是换行符的原因,解决办法很简单,一行代码,如下配置:

$ git config --global core.autocrlf false

原文连接:https://blog.csdn.net/u012762800/article/details/83941618

  相关解决方案